• 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: Lachlan Deck <email@hidden>
  • Date: Thu, 12 Feb 2004 11:49:53 +1100

Hi there,

On Thursday, February 12, 2004, at 10:05 AM, Mr Tea wrote:

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

My understanding of these things is that the trailing ":" in AS is of no consequence unless you want to concat a string to form a path - then the colon matters as in the following e.g.,
set thePath to (desktop as string) & "F1:" & "F2"
i.e., the colon after F1 matters.

So, referring to ~/Something will obtain a reference to 'Something' whether it be a folder or file.

What you're wanting is probably something along the following lines...
tell application "Finder"
set theItem to ((desktop as string) & "F1:F2") as alias
set itemExists to exists theItem
end tell
if itemExists and folder of (info for theItem) is true then
tell application "Finder" to open item theItem
end if

with regards,

--
Lachlan Deck
email@hidden
_______________________________________________
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: 
 >Colonic irrigation (OS X) (From: Mr Tea <email@hidden>)

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