Re: A Different Rsync Question
Re: A Different Rsync Question
- Subject: Re: A Different Rsync Question
- From: Whit Anderson <email@hidden>
- Date: Thu, 13 Sep 2007 20:30:26 -0500
On Sep 13, 2007, at 6:39 PM, Luther Fuller wrote:
I used the Finder's 'update' command to make 'rm'-ed files
disappear. But my problem was a bit different ... the file would
not disappear until the GUI tried to display it, so the Finder
continued to think the file still existed. Your results may vary.
Here's my example, FWIW ...
on remove(itemAlias)
try
tell application "Finder"
set itemName to (name of itemAlias)
set itemCont to (container of itemAlias) as alias
end tell
do shell script "rm -fr " & (quoted form of POSIX path of itemAlias)
tell application "Finder" to update item itemName of itemCont
end try
end remove
On Sep 13, 2007, at 4:35 PM, Whit Anderson wrote:
The discussion about rsync got me interested in trying rsync.
Sometimes when I use rsync, however, the finder doesn't get
updated to show the changes. When I use ls to list the files from
the shell I see the changes, but I don't see them in the GUI. Is
there some AppleScript (or do shell script) way to force the GUI
to update and show the changes?
Here is a portion of my script:
set rsyncScript to "rsync -aEv --delete /Volumes/500A/test/ /
1TB:test"
do shell script rsyncScript
Thanks. That helps.
I've also been twisted up in the way to refer to a path on a
networked storage device. Once the drive is mounted, the Finder
responds to
1TB:test
to find the folder I am working with.
rsync, on the other hand, seems to need
/Volumes/WHITHOME\;MSS-03EAE9/test/
--Whit
_______________________________________________
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