Re: Bad script, good script
Re: Bad script, good script
- Subject: Re: Bad script, good script
- From: Ronald Hofmann <email@hidden>
- Date: Tue, 04 Sep 2012 04:23:47 +0200
Of course Nelson, I didn´t think of external disk, sorry.
I just changed your script a little bit and it´s working this way:
set movee to "OnTour:Disk Speed:source:man1" get movee set toWhere to alias "OnTour:Disk Speed:sink" exists toWhere tell application "System Events" to move alias movee to toWhere tell application "System Events" to get contents of toWhere get movee
But I prefer this approach for moving files: set theCMD to "mv -f '/Volumes/OnTour/Disk Speed/source/man1' '/Volumes/OnTour/Disk Speed/sink'" do shell script theCMD
Ronald ---
Am 03.09.2012 um 23:07:07 schrieb R. Nelson Byrne <email@hidden>: Hi,
Drobo is an external drive mounted with the "ignore permissions" option.
Nelson On Sep 3, 2012, at 1:16 PM, Ronald Hofmann < email@hidden> wrote: Mmh, I actually don't know why the second example works. For me the paths looks strange: "Drobo:Disk Speed:source:" and "Drobo:Disk Speed:sink:. That is a folder outside of any user account directly in the root directory. And under UNIX you are NOT the owner of these folders. Let me guess, you come from Windows? Windows users are used to do it that way.
|
_______________________________________________
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