• 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: Deivy Petrescu <email@hidden>
  • Date: Sat, 08 Jan 2011 08:52:46 -0500

On Jan 8, 2011, at 08:21 , André Renault wrote:

> On 2011-01-08, at 1:45 AM, Paul Berkowitz <email@hidden> wrote:
>
>> On 1/7/11 8:20 PM, "Shane Stanley" <email@hidden> wrote:
>>
>>> So much for release notes...
>>
>> Indeed.
>
> Probably a dot release changed it.
>
>>
>> --
>> Paul Berkowitz

It could be, but it is a major change.
It should be documented.
I believe it affects all posix path.
Now, if an app or osax accepts posix path then one needs to send a string instead of an alias.
I just checked and System Events also accepts a string where the dictionary requires an alias.

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

-- Events---
tell application "System Events"
	open "/Users/deivy/Desktop/reaching.txt"
		--> missing value
		--> error number 0
end tell
Result:
missing value

the error message on the screen

PNG image




System Events dictionary says it needs an alias...


open v : Open an object.
open alias : The file(s) to be opened.
→ document







Deivy Petrescu
email@hidden



 _______________________________________________
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: KOENIG Yvan <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>)

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