Re: Osascripting
Re: Osascripting
- Subject: Re: Osascripting
- From: ba95 <email@hidden>
- Date: Thu, 11 Mar 2010 18:18:50 +0100
Thanks a lot Shane and Mark.
Just a confirmation:
I must then try (cp) :
> #!/bin/sh
> arch -i386 osascript -e 'tell application "Finder"' -e 'cp Folder "Test01" of disk "La Cie 640Go" to folder "Testo" of startup disk with replacing' -e 'cp Folder "Test02" of disk "La Cie 640Go" to folder "Testo" of startup disk with replacing' -e 'end tell'
Or (rsync):
> #!/bin/sh
> arch -i386 osascript -e 'tell application "Finder"' -e 'rsync Folder "Test01" of disk "La Cie 640Go" to folder "Testo" of startup disk with replacing' -e 'rsync Folder "Test02" of disk "La Cie 640Go" to folder "Testo" of startup disk with replacing' -e 'end tell'
Or are there some useless words to delete in this elementary script ?
Thanks to correct my poor shell scripting.
Best.
BA
Le 11 mars 2010 à 17:40, email@hidden a écrit :
> Message: 5
> Date: Thu, 11 Mar 2010 07:05:02 +0100
> From: ba95 <email@hidden>
> Subject: Osascripting
> To: email@hidden
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=us-ascii
>
> This is a test shell osascript I use under SuperDuper backup utility (2 folders copy from external HD to startup internal HD):
> --
> #!/bin/sh
> arch -i386 osascript -e 'tell application "Finder"' -e 'duplicate Folder "Test01" of disk "La Cie 640Go" to folder "Testo" of startup disk with replacing' -e 'duplicate Folder "Test02" of disk "La Cie 640Go" to folder "Testo" of startup disk with replacing' -e 'end tell'
> ---
>
> It works fine under SL.
> It does not under 10.5.4.
>
> I have tried to delete "arch -i386" with no success.
>
> Any suggestion ?
_______________________________________________
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