Re: Complete newbie
Re: Complete newbie
- Subject: Re: Complete newbie
- From: Bill Cheeseman <email@hidden>
- Date: Wed, 23 Apr 2003 14:47:37 -0400
on 03-04-23 1:57 PM, Philippe GRUCHET at email@hidden wrote:
>
From: Michelle Steiner <email@hidden>
>
>
>> open file "Macintosh HD:Users:imani08:Documents:Test"
>
>
>
> tell application "Text Edit"
>
> activate
>
> Open alias "Macintosh HD:Users:imani08:Documents:Test"
>
> end tell
>
>
Better is:
>
>
------------------------------------
>
tell application "TextEdit"
>
activate
>
open ":Users:imani08:Documents:Test" as alias
>
end tell
>
------------------------------------
>
>
By this way, you'll never have to write the HD's name if you don't need
>
to.
Didn't Chris Nebel of Apple recently indicate that this (the leading colon)
worked only because of an accident of how some versions of AppleScript were
implemented? I understood that it was not part of the specification, is not
guaranteed to work forever, and in fact no longer works.
I usually save Chris's very helpful posts, but I can't find this one.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.