I'm trying to get the script to check if there is a variable folder name, eg. "folder x", present from within a folder that has folders a-z for example?
The rest of the script works fine but the problem is that no matter what I've done so far I only get "yes" as the result of this line if exists folder theTitleCV of alias "Comics:" then.
My script so far:
set theTitleCV to "Folder X"
set theTitle to "Folder X-52"
--Creating the folder if it doesn't exists
tell application "Finder"
if exists folder theTitleCV of alias "Comics:" then
if theTitleCV is equal to theTitle then
make new folder of alias "Comics:" with properties {name:theTitleCV}
else
set theTitleResult to ((display dialog "Title Options" buttons {theTitleCV, theTitle, "Cancel"} default button 2))
set theButton to button returned of theTitleResult
make new folder of alias "Comics:" with properties {name:theButton}
end if
else
return "Yes"
end if
end tell
Thanks in advance for any help that is offered.
P.S. If this type of question has been asked and answered before, please just point me in the direction as to what to search for. Thanks :)
Comics? It should work ifComicsis a volume and if sodisk "Comics"is preferable overalias "Comics:"Comicsis a volume. Ok, thanks. I'll try that and get back to youYeseven though there is, definitely, no folder calledFolder Xif exists folder, you needif not exists folder