• 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
How do you force Finder to update changes in a folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do you force Finder to update changes in a folder


  • Subject: How do you force Finder to update changes in a folder
  • From: Cornwall <email@hidden>
  • Date: Wed, 3 Apr 2002 16:41:51 -0800

I have an application that frequently overwrites files in its folder. When I use something like the snippet below, the script will error whenever the file is overwritten and renamed.

tell application "Finder"
set fil1 to first file of folder "MacHD:Users:squig:Folder1:Logs:" whose name contains "logfile_"
fil1 as alias returning als1
end tell

But, if I have the Finder open and close the file's enclosing folder when the above (in a try block) errors, then rerun the snippet, all is well.

Is there a less distracting way to get the Finder to update itself, or am I stuck with windows opening and closing all over the place?

Thanks
Corny
_______________________________________________
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.

  • Follow-Ups:
    • Re: How do you force Finder to update changes in a folder
      • From: Rob Jorgensen <email@hidden>
  • Prev by Date: Re: Get UNIX path of selected file
  • Next by Date: Re: Get UNIX path of selected file
  • Previous by thread: Illustrator 9/10: import formatted text & selecting PMS colours
  • Next by thread: Re: How do you force Finder to update changes in a folder
  • Index(es):
    • Date
    • Thread