Hello, to run my script you drag files onto the the script, how do I access that folder where the files are dragged from? I want to make a new folder in the folder. Seems like I can’t find the right syntax.
Thank you
Hello, to run my script you drag files onto the the script, how do I access that folder where the files are dragged from? I want to make a new folder in the folder. Seems like I can’t find the right syntax.
Thank you
Hi,
there are several methods, for example asking System Events
tell application "System Events" to set parentFolder to path of container of theItem as alias --> alias specifier
tell application "System Events" to set parentFolder to path of container of theItem --> HFS path
tell application "System Events" to set parentFolder to POSIX path of container of theItem --> POSIX path
theItem is one of the list items in the parameter of the on open handler