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

Re: EPS to JPEG


  • Subject: Re: EPS to JPEG
  • From: "Mark J. Reed" <email@hidden>
  • Date: Wed, 1 Jun 2005 12:55:26 -0400

Well, I don't know how to convince PhotoShop to obey your save
options, but if you want to get files within subfolders, you have to
either do the recursion yourself or use "do shell script 'find ...'".

Try this:

on every_file_under(a_folder)
	tell application "Finder" to set item_list to every item in a_folder
	set file_list to {}
	repeat with i from 1 to count (item_list)
		set an_item to item i of item_list
		if kind of an_item is "Folder" then
			set file_list to file_list & every_file_under(an_item)
		else
			set file_list to file_list & {an_item}
		end if
	end repeat
	return file_list
end every_file_under

Then use "every_file_under(hotFolder)" instead of "every file in
folder hotFolder".


On 6/1/05, Ruby Madraswala <email@hidden> wrote:
>
>
>
> I want to convert all files in folder/subfolders from EPS to JPEG.
>
>
>
> The save option does not work even though I got the example of script from
> Photoshop applescript manual. Also this script does not check the subfolders
> for file.
>
>
>
>
>
>
>
> tell application "Finder"
>
>             set flist to every file in folder hotFolder
>
>             repeat with curfile in flist
>
>                   ---set file names
>
>                   set nm to name of curfile as string
>
>                   set dnm to curfile as string
>
>                   set newfile to hotFolder & characters 1 thru 5 of nm &
> "cc.jpg"
>
>                   if nm contains ".eps" then
>
>                         tell application "Adobe Photoshop 7.0"
>
>                               open file dnm
>
>                               set myOptions to {class:JPEG save options,
> embed color profile: false, format options:
>
>                                     standard, matte: background color mate,}
>
>                               save document in file newfile as jpeg with
> options myOptions with replacing
>
>                         end tell
>
>                   end if
>
>             end repeat
>
> end tell
>
>
>
> Appreciate all the help.
>
>
>
> Ruby
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Applescript-users mailing list
> (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
>


--
Mark J. Reed <email@hidden>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >EPS to JPEG (From: "Ruby Madraswala" <email@hidden>)

  • Prev by Date: Spotlight Workaround
  • Next by Date: writing text to MS Word
  • Previous by thread: EPS to JPEG
  • Next by thread: Re: EPS to JPEG
  • Index(es):
    • Date
    • Thread