• 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: Scripting Finder to open a hidden . folder...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Scripting Finder to open a hidden . folder...
      • From: Doug McNutt <email@hidden>
References: 
 >Scripting Finder to open a hidden . folder... (From: "Stranathan, Dan" <email@hidden>)

  • Prev by Date: Re: Scripting Finder to open a hidden . folder...
  • Next by Date: Re: Scripting Finder to open a hidden . folder...
  • Previous by thread: Re: Scripting Finder to open a hidden . folder...
  • Next by thread: Re: Scripting Finder to open a hidden . folder...
  • Index(es):
    • Date
    • Thread