• 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: Need help with image events droplet to save multiple files as png
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need help with image events droplet to save multiple files as png


  • Subject: Re: Need help with image events droplet to save multiple files as png
  • From: Mark Lively <email@hidden>
  • Date: Mon, 2 Jan 2006 22:41:43 -0500

You need to pass New_file_path to the process handler.

process_item(this_item,New_file_path)

on process_item (this_item,New_file_path)

-Mark
Its always the easy things that trip us up.

On 1/2/06, Michael Cytrynowicz <email@hidden> wrote:
> Hi, Happy New Year all!
>
> Can someone help me with something that must be embarassingly simple,
> but is giving me a hard time?
> I am trying to write a droplet which saves multiple files as png (in
> the same folder as the original images).  I think I'm getting stuck
> in passing the path information for where Image Events has to save
> the new file...
>
> Any help is surely appreciated...
>
>
> Mike
>
>
> ==============
>
> on open these_items
>         repeat with i from 1 to the count of these_items
>                 set this_item to item i of these_items
>                 set the item_info to info for this_item
>                 set this_path to (item i of these_items) as string
>                 set the new_path to (((characters 1 thru -4 of this_path) as text)
> & "png")
>                 process_item(this_item)
>         end repeat
>
> end open
>
> on process_item(this_item)
>         tell application "Image Events"
>                 launch
>                 set thisImage to open this_item
>                 scale thisImage to size 300
>                 save thisImage as PNG in file new_path with icon
>                 close thisImage
>         end tell
>
> ==============
>  _______________________________________________
> 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
>
 _______________________________________________
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: 
 >Need help with image events droplet to save multiple files as png (From: Michael Cytrynowicz <email@hidden>)

  • Prev by Date: Re: Need help with image events droplet to save multiple files as png
  • Next by Date: Re: Need help with image events droplet to save multiple files as png
  • Previous by thread: Re: Need help with image events droplet to save multiple files as png
  • Next by thread: Re: Need help with image events droplet to save multiple files as png
  • Index(es):
    • Date
    • Thread