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

Re: Open using


  • Subject: Re: Open using
  • From: KOENIG Yvan <email@hidden>
  • Date: Sun, 9 Nov 2008 22:24:20 +0100


Le 9 nov. 2008 à 21:56, Paul Berkowitz a écrit :

On 11/9/08 12:06 PM, "Luther Fuller" <email@hidden> wrote:

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.

That's because it's just a string. Just a slip on your part.

Did you try


tell application "Finder" to open docFile using application "Help Viewer"



I don't have a suitable file to test on but when I try running

    application "Help Viewer"

I get

--> Macintosh HD:System:Library:CoreServices:Help Viewer.app


which looks encouraging. If it *can* open the file in the UI, this should
also work via AppleScript.


--
Paul Berkowitz

set fichier to (path to desktop as text) & "antikanus.rtf" set fichier to fichier as alias tell application "Finder" open fichier using application "TextEdit" end tell

the event log is:

tell current application
path to desktop as text
"Macintosh HD:Users:yvan_koenig:Desktop:"
end tell
tell application "Finder"
open alias "Macintosh HD:Users:yvan_koenig:Desktop:antikanus.rtf" using application "TextEdit"
"Erreur dans Finder : Le gestionnaire ne peut gérer des objets de cette classe."


I don't know what but something seams to be weird.

Yvan KOENIG (from FRANCE dimanche 9 novembre 2008 22:23:52)



_______________________________________________
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
References: 
 >Re: Open using (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Open using
  • Next by Date: Re: Open using
  • Previous by thread: Re: Open using
  • Next by thread: Re: Open using
  • Index(es):
    • Date
    • Thread