Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems with file renaming



Did i send this? I'm not sure. maybe there's some confusion with an outdated E-Mail-account and a forwardint to it. So please excuse me if it was double-sent.

Given a folders name (Jobname) is "123" and the items in the folder are
{"01", "02", "Bilder", "Korrekturabzug", "Vorlagen"}
from the following code i get
{"02", "123-123-01", "123-Bilder", "123-Korrekturabzug", "123-Vorlagen"}.
What did i do wrong?


Holger

code:

set theFolder to folder Jobname of desktop
				repeat with i from 1 to count of items in theFolder
					set theItem to item i of theFolder
					set OldItemName to name of theItem
					set NewItemName to Jobname & "-" & OldItemName
					set name of theItem to NewItemName
				end repeat

end code

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.