I’m new to Applescript, and I’m having a bit of trouble.
I’m writing a script that I want to be the default application to open a certain filetype.
To clarify, say I’ve got some xml files, but they’re all called something.myextension. I want to write a simple Applescript application, that I can set as the default application that opens .myextension files.
That’s fine, I know how to set the default handler for files.
The problem is, how do I retrieve that file in an applescript? In plain text, I want to do this:
get the file that’s just tried to be run with this applescript
do some stuff with it
end of script.
Could anyone enlighten me as to how I get that file?