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

Re: hide file


  • Subject: Re: hide file
  • From: Ron Hunsinger <email@hidden>
  • Date: Sat, 12 May 2012 12:18:46 -0700


On May 12, 2012, at 2:46 AM, KOENIG Yvan wrote:
I tried to use 

quoted form of POSIX path of thePath
do shell script "/usr/local/bin/setfflags -i 1 " & result with administrator privileges

but I got an error message stating that the command can't be use because it's a PPC one.

Anything in /usr/local is something you put there yourself. That directory is one that Apple promises not to touch. If the version you have there is too old, install a new version the same way you installed the old version.

Or better yet, perform the task with the built-in tools:

do shell script "/usr/bin/chflags hidden " & result with administrator privileges

chflags only recognizes the hidden flag on (Snow) Leopard and later, but if you're getting a complaint about PPC code I assume you're on Lion. (You should have told us that.)

The flag that chflags knows as "hidden" is the same flag that Setfile knows as "-V" and Finder looks for in the file's FinderInfo field.

-Ron Hunsinger
 _______________________________________________
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

References: 
 >hide file (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Re: hide file
  • Next by Date: Re: List of aliases contains alias
  • Previous by thread: hide file
  • Next by thread: Re: hide file
  • Index(es):
    • Date
    • Thread