Re: Why is this script 'openin' stationery files.
Re: Why is this script 'openin' stationery files.
- Subject: Re: Why is this script 'openin' stationery files.
- From: Shane Stanley <email@hidden>
- Date: Sun, 11 Sep 2011 09:48:29 +1000
On Sep 10, 2011, at 11:29 PM, Axel Luttgens wrote:
>
> Do you mean that the file duplication is done by LaunchServices?!?
I had thought it was done by something other than the Finder, probably LaunchServices, but now I'm having serious doubts.
For example, this passes the template file to the open handler:
tell application "Finder"
open (POSIX file "/Users/shane/Desktop/Test.template") using (POSIX file "/Users/shane/Desktop/Droplet.app")
end tell
As does this in AppleScriptObjC:
tell current application's NSWorkspace's sharedWorkspace() to openFile_withApplication_("/Users/shane/Desktop/Test.template", "/Users/shane/Desktop/Droplet.app")
This is different to the situation with aliases, where both the above pass the resolved file and not the alias, suggesting the Finder isn't involved in that decision.
--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden