Re: Scripting Finder to open a hidden . folder...
Re: Scripting Finder to open a hidden . folder...
- Subject: Re: Scripting Finder to open a hidden . folder...
- From: Christopher Nebel <email@hidden>
- Date: Wed, 13 Aug 2008 11:35:23 -0700
On Aug 13, 2008, at 9:42 AM, Stranathan, Dan wrote:
I'm trying to use an AppleScript to get the Finder to open a hidden
folder that lives on a SMB network volume, but the script doesn't
like the fact that the folder is hidden (it has a dot at the
beginning of its name to avoid being accessed by accident)
Code: tell application "Finder" to open folder "Volumes:support:.ckpt"
Error: Finder got an error: Can't get folder "Volumes:support:.ckpt".
What's odd is that I have no problem pathing to the hidden folder
using the Finder's native "Go to Folder..." GUI tool. I type in the
path (Volumes/support/.ckpt). I can also drill into the folder from
the Terminal as well (cd /Volumes/support/.ckpt).
Any ideas on how to make AppleScript handle this location without
complaints?
A peculiarity of Finder scripting is that it won't let you refer to
invisible items as "files" or "folders", but it will let you refer to
them as "items":
tell application "Finder" to open item "Volumes:support:.ckpt"
--Chris Nebel
AppleScript Engineering
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden