Re: Colonic irrigation (OS X)
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.