Re: Opening Hidden Folders in Finder
Re: Opening Hidden Folders in Finder
- Subject: Re: Opening Hidden Folders in Finder
- From: Christopher Nebel <email@hidden>
- Date: Fri, 15 Jun 2001 15:05:46 -0700
On Thursday, June 14, 2001, at 08:24 AM, Mark Phipps wrote:
How can I open a hidden folder with the Finder in MacOSX?
Here is what I have so far:
tell application "Finder"
open folder "var" of the startup disk
end tell
I am logged in as root, so I should be able to access this
folder. It tells me that it can't find the folder.
It's trying to only let you do what you can see from the interface.
Since "var" is normally hidden, no dice. (I'm not sure, but this should
probably count as a bug, seeing as how you can "Go To" var with no
problem.) You can work around this, however:
path to the startup disk as string
tell application "Finder"
open alias (the result & "var")
end
--Chris Nebel
AppleScript Engineering