Open using
Open using
- Subject: Open using
- From: Luther Fuller <email@hidden>
- Date: Sun, 9 Nov 2008 14:06:46 -0600
I want to open a file, so I write ...
set docFile to (((path to desktop) as text) & "Help:TEST_HELP:index.html
") as alias
tell application "Finder" to open docFile
But this opens the file with Safari, which I don't want. So the second
line becomes ...
tell application "Finder" to open docFile using "Help Viewer"
Which returns the message ...
Finder got an error: Can't make "Help Viewer" into type application
file.
The variation 'using application id "com.apple.helpviewer" ' doesn't
work, either.
So, I used
tell application "Help Viewer" to open docFile
or
tell application id "com.apple.helpviewer" to open docFile
Which do work.
Is 'open ... using ...' buggy or am I misusing it?
_______________________________________________
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