Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Applescript > Applescript to ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 1655 of 1674
Post > Topic >>

Applescript to fix permissions on im****ted files

by Pedro <only@[EMAIL PROTECTED] > Aug 24, 2008 at 05:14 PM

Hi people

Please forgive me asking for someone else, but 'someone else' reckons
they won't understand the answer, so ...

My friend has just bought a MacBook Pro and tried to used the
'im****ting old files' utility to get the files from her old G4 PPC -
via Firewire, I think.

The files are there in the laptop, but she has to log out and change
user to access them. Not handy!

Is there an applescript that will change all the owner****ps so she can
open them in the normal way?

I found this applescript:

to chOwn(aliasToFolder)
set mypath to quoted form of POSIX path of aliasToFolder
        set uName to do shell script "whoami"
   do shell script "chown -R" & uName & space & mypath & ";chmod 775 "
& mypath with administrator privileges
end chOwn

which was quoted on:

http://lists.apple.com/archives/applescript-users/2006/Aug/msg00255.html

Will this do the trick? and if so ...

1) Am I right she should edit this and replace "uName" with her login
username (it's a single user Mac so she is also Admin)

2) Does she also have to replace "path" with something more specific,
and if so, then what? [Sorry I'm vague on that path thing!]

3) Does this script (if appropriate) do the job by running, or should
she drag-drop the folder with the files onto the script-app icon?

Apologies if this isn't clear. I did my best!

Most grateful for any advice

TIA

Pedro
 




 5 Posts in Topic:
Applescript to fix permissions on imported files
Pedro <only@[EMAIL PRO  2008-08-24 17:14:06 
Re: Applescript to fix permissions on imported files
Jerry Kindall <jerryki  2008-08-24 15:00:16 
Re: Applescript to fix permissions on imported files
Pedro <only@[EMAIL PRO  2008-08-25 14:25:05 
Re: Applescript to fix permissions on imported files
John Stewart <psamech@  2008-08-25 09:38:48 
Re: Applescript to fix permissions on imported files
Pedro <only@[EMAIL PRO  2008-08-25 14:27:09 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 13:29:16 CST 2008.