• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Checking 2 folders and copy if new
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Briskets (perl)
  • Next by Date: Re: Re: Parents/Child Scripts
  • Previous by thread: Re: Checking 2 folders and copy if new
  • Next by thread: Re: Re: Checking 2 folders and copy if new
  • Index(es):
    • Date
    • Thread