• 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
Save in Image Events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Save in Image Events


  • Subject: Save in Image Events
  • From: Luther Fuller <email@hidden>
  • Date: Wed, 14 Dec 2005 10:57:43 -0600

I have been trying to write a script to convert image files this morning. After spending too much time getting it to work, I was successful, but noticed some problems with the 'save' command. Here's a simplification of the script:

    tell application "Image Events"
        launch
        set theImage to open fileAlias
        save theImage as TIFF in destFolder -- for example
        -- other types have the same problems
        close theImage
    end tell

And the problems are:
1. The dictionary shows that 'save ...' returns an alias,
    but it returns nothing. The result is undefined.
2. If the original file has an extension, even an incorrect one,
    the new TIFF file will have the correct .tiff extension.
    However, if the original file has no extension, then the new
    file will have no extension and the Finder will not recognize
    the new file as an image.
    (But one may add the correct extension manually.)

(The work-around is to rename the original file with the correct extension. I may do this later today.)

I'm thinking that these problems are a bug and I'm wondering if anyone else has had a similar experience with Image Events' 'save' command. Has anyone submitted a bug report about this?
_______________________________________________
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
  • Follow-Ups:
    • Re: Save in Image Events
      • From: Jay Louvion <email@hidden>
    • Re: Save in Image Events
      • From: Yvan KOENIG <email@hidden>
  • Prev by Date: Re: Mailing with a do shell script
  • Next by Date: Re: man convert
  • Previous by thread: RE: Mailing with a do shell script
  • Next by thread: Re: Save in Image Events
  • Index(es):
    • Date
    • Thread