• 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
Open using
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Open using
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Mac OS X 10.4 (yes, 10.4.0) bug was removed in 10.5.5...
  • Next by Date: Re: Open using
  • Previous by thread: Delete a person in AddressBook
  • Next by thread: Re: Open using
  • Index(es):
    • Date
    • Thread