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

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.

References: 
 >Re: Complete newbie (From: Philippe GRUCHET <email@hidden>)

  • Prev by Date: Scripting Network location
  • Next by Date: Running an application -- dock question
  • Previous by thread: Re: Complete newbie
  • Next by thread: Re: Complete newbie
  • Index(es):
    • Date
    • Thread