Re: hide file
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>) |