• 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: Applescript Help...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applescript Help...


  • Subject: Re: Applescript Help...
  • From: Bill Briggs <email@hidden>
  • Date: Thu, 19 Jul 2007 16:27:47 -0300

At 9:24 AM -0700 7/19/07, Don Wieland wrote:
>Any help would be appreciated ;-)

You should at least TRY to do it before asking.

tell application "Finder"
	-- activate
	set fileSource to alias "MacHD:Path:to:the:folder:"
	set itemList to every item of fileSource as alias list
	set parentName to name of fileSource
	set n to count of itemList
	repeat with i from 1 to n
		set tempName to name of item i of itemList
		set newName to parentName & "_" & tempName
		set name of item i of itemList to newName
	end repeat
end tell

- web
 _______________________________________________
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

References: 
 >Applescript Help... (From: Don Wieland <email@hidden>)

  • Prev by Date: Re: Applescript Help...
  • Next by Date: Process file list from Automator in Filemaker
  • Previous by thread: Re: Applescript Help...
  • Next by thread: Re: Applescript Help...
  • Index(es):
    • Date
    • Thread