• 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: finder - how do I rename/move this?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: finder - how do I rename/move this?


  • Subject: Re: finder - how do I rename/move this?
  • From: Michelle Steiner <email@hidden>
  • Date: Fri, 23 Dec 2011 11:10:53 -0700

On Dec 23, 2011, at 10:50 AM, Dave wrote:

> filemaker server daily creates a backup with a time date stamp like:
> THIS-FOLDER_2011-12-22_2245
>
> now I need to move it's contents elsewhere
>
> since it is always different name ever day - I can't get to it with
> simple scripting
>
> here is the path...
>
> maindrive/bu1/bu1a/THIS-FOLDER_2011-12-22_2245/main-here

Assuming that the name always begins with "THIS_FOLDER", the following will get you the folder

set parent_folder to POSIX file "/bu1/bu1a" as alias
tell application "Finder"
	folders of (parent_folder) whose name begins with "THIS-FOLDER"
end tell

-- Michelle

--
"Colorless green ideas sleep furiously."

 _______________________________________________
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: finder - how do I rename/move this?
      • From: DealTek <email@hidden>
References: 
 >finder - how do I rename/move this? (From: Dave <email@hidden>)

  • Prev by Date: finder - how do I rename/move this?
  • Next by Date: Re: Property not behaving in Smile 3.6.0 (Build 668)
  • Previous by thread: finder - how do I rename/move this?
  • Next by thread: Re: finder - how do I rename/move this?
  • Index(es):
    • Date
    • Thread