This question is one that probably only @peternlewis can answer, but anyone else feel free to chip in...
In a plug I am writing I want to display a dialog using an AppleScript statement like this:
display dialog "some message" with icon filename
where filename
is derived from the name of the file containing the icon as specified in the KM Action plist file. Getting the path to where the plug in files are stored is easy enough, but getting that filename, without "hacking" the plist file seems impossible.
Is the name of that (and any of the other metadata apart from the parameters) accessible to my code?
I am currently using AppleScript for my plug in code, so a solution using that would be preferable.
Thanks.