• 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: New to AppleScript,please help.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New to AppleScript,please help.


  • Subject: Re: New to AppleScript,please help.
  • From: KOENIG Yvan <email@hidden>
  • Date: Sat, 8 Jan 2011 17:51:29 +0100


Le 8 janv. 2011 à 16:22, Deivy Petrescu a écrit :



I bet that this one will run flawlessly :

set l to "/Users/deivy/Desktop/reaching.txt"
try
tell application "System Events" to open disk item l
on error e
return e
end try

Yvan KOENIG (VALLAURIS, France) samedi 8 janvier 2011 15:10:56


You would lose the bet...
In this case the dialog that came up with my example does not show up.

set l to "/Users/deivy/Desktop/reaching.txt"
try
tell application "System Events" to open disk item l
on error e
return e
end try

--Events--
tell application "System Events"
open disk item "/Users/deivy/Desktop/reaching.txt"
--> error number 0
end tell

Right, I was forced to use :

tell application "System Events" to open file (path of (disk item l))

Yvan KOENIG (VALLAURIS, France) samedi 8 janvier 2011 17:50:48


 _______________________________________________
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: New to AppleScript,please help.
      • From: Deivy Petrescu <email@hidden>
References: 
 >Re: New to AppleScript,please help. (From: Paul Berkowitz <email@hidden>)
 >Re: New to AppleScript,please help. (From: André Renault <email@hidden>)
 >Re: New to AppleScript,please help. (From: Deivy Petrescu <email@hidden>)
 >Re: New to AppleScript,please help. (From: KOENIG Yvan <email@hidden>)
 >Re: New to AppleScript,please help. (From: Deivy Petrescu <email@hidden>)

  • Prev by Date: Re: New to AppleScript,please help.
  • Next by Date: Re: Slow vs faster
  • Previous by thread: Re: New to AppleScript,please help.
  • Next by thread: Re: New to AppleScript,please help.
  • Index(es):
    • Date
    • Thread