Re: Checking 2 folders and copy if new
Re: Checking 2 folders and copy if new
- Subject: Re: Checking 2 folders and copy if new
- From: Bjorn Van Blanckenberg <email@hidden>
- Date: Tue, 14 May 2002 16:21:34 +0200
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
>
Hi again,
>
>
left out a little option for cp which preserves mod dates etc.
>
>
From: Lachlan Deck <email@hidden>
>
>
<snip>
>
>
on copy_files(fromF, toF, theList)
>
set thePath to (POSIX path of fromF) as string
>
set theStr to "cd " & thePath & "; cp -p"
>
repeat with i from 1 to the number of items in theList
>
set theStr to theStr & " " & ((item i of theList) as string)
>
end repeat
>
set theStr to theStr & " " & ((POSIX path of toF) as string)
>
do shell script theStr
>
end copy_files
>
>
<snip>
>
>
with regards,
>
>
--
>
Lachlan Deck
<email@hidden
--
thanks
Bjorn Van Blanckenberg
_______________________________________________
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.