• 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: Colonic irrigation (OS X)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Colonic irrigation (OS X)


  • Subject: Re: Colonic irrigation (OS X)
  • From: Walter Ian Kaye <email@hidden>
  • Date: Wed, 11 Feb 2004 17:46:28 -0800

At 11:05p +0000 02/11/2004, Mr Tea didst inscribe upon an electronic papyrus:

Hi, folks.

Either I'm confused about colons, or AppleScript is, or we both are....

tell application "Finder"
activate
open item ((path to desktop folder as string) & "F1:F2:")
end tell

That's straightforward enough. If there's a folder on my desktop called
'F1', containing a folder called 'F2', the above script will open it.
However, if I replace the folder 'F2' with a file of the same name, the
script will open that instead, without a whisper of complaint.

Similarly, if I leave the final colon off the file/folder path, AS will
indiscriminately open F2 regardless of whether it's a file or a folder.

That's because you're using 'item'.

If you had told it to open 'folder' then it would have wanted the colon.
I think... maybe... not sure...


-boo
who hasn't used 'item' since the days of desk accessory suitcase files
_______________________________________________
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.

  • Follow-Ups:
    • Re: Colonic irrigation (OS X)
      • From: Mr Tea <email@hidden>
References: 
 >Colonic irrigation (OS X) (From: Mr Tea <email@hidden>)

  • Prev by Date: Re: Efficient searching of Address Book
  • Next by Date: Re: Efficient searching of Address Book
  • Previous by thread: Re: Colonic irrigation (OS X)
  • Next by thread: Re: Colonic irrigation (OS X)
  • Index(es):
    • Date
    • Thread