Re: Re: Checking 2 folders and copy if new
Re: Re: Checking 2 folders and copy if new
- Subject: Re: Re: Checking 2 folders and copy if new
- From: Lachlan Deck <email@hidden>
- Date: Wed, 15 May 2002 10:37:30 +1000
Hi there,
From: Bjorn Van Blanckenberg <email@hidden>
I have troubles with
set thePath to (POSIX path of fromF) as string
...
set theStr to theStr & " " & ((POSIX path of toF) as string)
do shell script theStr
Something that work in OSX with applescript version 1.8
and not in OS 9.1 and applescript 1.6
Oh, sorry - I assumed you were on OS X seeing as you were using "/"
folder delimiters.
So yes the above won't work for you because I'm scripting the shell -
which is for OS X.
I avoided scripting the Finder to doing the final copies because I
thought this would be faster.
on copy_files(fromF, toF, theList)
tell application "Finder"
repeat with i from 1 to the number of items in theList
duplicate ((fromF & ":" & (item i of the_list)) as alias) to ,
(toF as alias) with replacing
end repeat
end tell
end copy_files
with regards,
--
Lachlan Deck
email@hidden
_______________________________________________
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.