• 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: A Different Rsync Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A Different Rsync Question


  • Subject: Re: A Different Rsync Question
  • From: Luther Fuller <email@hidden>
  • Date: Thu, 13 Sep 2007 18:39:12 -0500

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

_______________________________________________ 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
  • Follow-Ups:
    • Re: A Different Rsync Question
      • From: Whit Anderson <email@hidden>
References: 
 >A Different Rsync Question (From: Whit Anderson <email@hidden>)

  • Prev by Date: Re: fileMaker Value Lists
  • Next by Date: Taking iChat offline
  • Previous by thread: A Different Rsync Question
  • Next by thread: Re: A Different Rsync Question
  • Index(es):
    • Date
    • Thread