Applescript - creating a folder if it doesn't exist
Can someone please point out why this bit of Applescript isn't working?
Thanks!
on open droppedItems
tell application "Finder"
set inputFolder to (container of first item of droppedItems) as
Unicode text
if (exists folder ("converted") of inputFolder) then
set outputFolder to (inputFolder & "/converted/") as text
else
make new folder at inputFolder with properties {name:"converted"}
set outputFolder to the result as text
end if
end tell
No comments:
Post a Comment