• 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: renaming JPEG FILES
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: renaming JPEG FILES


  • Subject: Re: renaming JPEG FILES
  • From: Davide Puppo <email@hidden>
  • Date: Fri, 30 Mar 2007 19:33:18 +0200


Il giorno 30/mar/07, alle ore 19:08, Peter Baxter ha scritto:

oops,

I had a mistake:


try this instead

on adding folder items to this_folder after receiving these_items
	tell application "Finder"
		try
			repeat with i from 1 to number of items in these_items
				set this_item to item i of these_items
				set new_name to the name of this_folder as string
				set file_count to the number of items in this_folder
				set the item_info to info for this_item
				--checks the file type
				if the name extension of the item info is in {jpg} then
					--gives a unique name to the file
					set the name of this_item to new_name & "_" & file_count & ".jpg"
				end if
			end repeat
		end try

	end tell
end adding folder items to


Many thanks.
You're like Flash!

It should run. I though about pages and pages of script and this few lines make me think about my way to think a problem...

But the screens flashes (update some window) but it doesn't do anythin.I tryed to remove the if but nothing changed....

I have to installa something in my system?
I have the latest release 10.4.9 on an intel macbook...



_______________________________________________
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: renaming JPEG FILES
      • From: Davide Puppo <email@hidden>
References: 
 >(no subject) (From: Davide Puppo <email@hidden>)
 >Re: renaming JPEG FILES (From: Peter Baxter <email@hidden>)

  • Prev by Date: Re: How does one save a vcard?
  • Next by Date: Re: How does one save a vcard?
  • Previous by thread: Re: renaming JPEG FILES
  • Next by thread: Re: renaming JPEG FILES
  • Index(es):
    • Date
    • Thread