Re: Problems with Mac to PC names conversion script
Re: Problems with Mac to PC names conversion script
- Subject: Re: Problems with Mac to PC names conversion script
- From: Axel Luttgens <email@hidden>
- Date: Thu, 18 Oct 2007 11:30:38 +0200
On 17/10/07 0:04, Brett Conlon wrote:
Hi all,
Can anyone suggest a way to improve/fix an issue with the below script
where it chokes on files on a Mac Server which are either locked or have
incorrect permissions. I'm part way there with detecting the error type
with bad permissions but I've had problems actually getting the script to
successfully change the permissions on the Mac Server - even if it is a
read/write volume.
Here's the script:
#############################################################
[...]
on run
try
set aFolder to choose folder with prompt "Please choose a
folder to process"
set filePath to quoted form of POSIX path of aFolder
do shell script "chmod -R 777 " & filePath
display dialog "Permissions changed successfully." buttons
{"Thanks!"} default button 1
on error
display dialog "Changing permissions failed. Please try it
manually" buttons {"OK"} default button 1
end try
end run
#############################################################
Hello Brett,
I guess above excerpt is the one of concern.
So, if I understood you correctly, you are running the script on a
machine M, and aFolder is set to some folder located on a volume mounted
from a server S.
Before going further, could you provide us with some more info, eg:
- does the mount occur through AFP?
- who mounts the volume?
- who owns aFolder?
- what error message exactly does the do shell command issue?
Axel
_______________________________________________
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