• 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: Make a file visible
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Make a file visible


  • Subject: Re: Make a file visible
  • From: Doug McNutt <email@hidden>
  • Date: Sat, 14 Dec 2002 17:07:25 -0700

At 17:51 +0100 12/14/02, Thomas wrote:
>Hi all, I was wondering if I could use AppleScript to make a file visible / invisible on OS X (without any scripting addition) ?

SetFile -a v POSIXpath

is the UNIX tool. And it's case sensitive if hashing is active (the default) in your chosen shell. You need to have the Developer Tools installed and a pointer to /Developer/Tools included in your PATH variable. In AppleScript you could:

do shell script '/Developer/Tools /SetFile -a v POSIXpath'

The v is case sensitive. V will make the file invisible The a stands for attribute and there are others. "man SetFile" is pretty complete.

But SetFile deals with visibility in the MacOS 9/HFS+ sense. Files with names beginning in a period are invisible for other reasons. Those can be made visible en masse using a setting which is most easily changed using TinkerTool. (Google should find it for a free download.) I don't think you can change their visibility on a one by one basis but there is an interesting file on the UNIX root called .hidden which you might want to look at.

--
--> If you are presented a number as a percentage, and you do not clearly understand the numerator and the denominator involved, you are surely being lied to. <--
_______________________________________________
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.

  • Follow-Ups:
    • Re: Make a file visible
      • From: Thomas <email@hidden>
References: 
 >Make a file visible (From: Thomas <email@hidden>)

  • Prev by Date: Getting Internet Explorer 5.2 window name
  • Next by Date: Activating applications from a list
  • Previous by thread: Make a file visible
  • Next by thread: Re: Make a file visible
  • Index(es):
    • Date
    • Thread