• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Why is this script 'openin' stationery files.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Why is this script 'openin' stationery files.
      • From: Axel Luttgens <email@hidden>
References: 
 >Why is this script 'openin' stationery files. (From: KOENIG Yvan <email@hidden>)
 >Re: Why is this script 'openin' stationery files. (From: Axel Luttgens <email@hidden>)
 >Re: Why is this script 'openin' stationery files. (From: Shane Stanley <email@hidden>)
 >Re: Why is this script 'openin' stationery files. (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: Why is this script 'openin' stationery files.
  • Next by Date: Re: Why is this script 'openin' stationery files.
  • Previous by thread: Re: Why is this script 'openin' stationery files.
  • Next by thread: Re: Why is this script 'openin' stationery files.
  • Index(es):
    • Date
    • Thread