Re: Open <file> using <application
Re: Open <file> using <application
- Subject: Re: Open <file> using <application
- From: Bryan <email@hidden>
- Date: Tue, 11 Sep 2001 18:35:48 -0400
- Organization: Apex Radiology
needs a tell block and alias:
tell application "Finder" to open myfile using alias "Path:To:Quicktime
Player"
Emmanuel wrote:
>
At 9:20 +0200 11/09/01, Frank Renner wrote:
>
>
>
>Hi List,
>
>
>
>Why does 'open myfile using '"Quicktime Player"' not work ("invalid key
>
>form")?
>
>
Check carefully the Finder's dictionary. It does not allow strings as the
>
descriptor of the application.
>
>
You could for instance use an alias.
>
>
To automatically get the alias of "QuickTime Player" really requires its
>
signature ("TOVD"):
>
>
------------------------------
>
tell application "Finder" to get application file id "TVOD" as alias
>
------------------------------
>
>
Just in case, don't miss that the "open" line has to be wrapped in a
>
>
------------------------------
>
tell application "Finder"
>
end tell
>
------------------------------
>
wrapper.
>
>
HTH
>
Emmanuel
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users
[demime 0.98b removed an attachment of type text/x-vcard which had a name of bryan.vcf]