Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Resolving aliases



The second resolves because you are not resolving an alias.  path to startup disk as text returns just that text.

Now if you were to try this 

alias ((path to startup disk as text) & "this file does not exist")

then yes it would fail.


James Nierodzik
System Administrator

FireStar Communications
211 E Ontatrio, Suite 700
Chicago, IL 60611

tel:  312.649.0900 ext. 134
fax: 312.649.9180
www.firestarcom.com


On Jun 28, 2007, at 10:07 AM, Michelle Steiner wrote:

This does not compile, which is as expected:

alias "Dora:this file does not exist"

This does compile, but I would have expected it to have the same compile error as the above code:

(path to startup disk as text) & "this file does not exist"

How come?

-- Michelle

--
"Democrats wrap themselves in the constitution and burn the flag while Republicans wrap themselves in the flag and burn the constitution."


_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to 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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Resolving aliases (From: Michelle Steiner <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.