In an AppleScript, can compression level high be used when saving an image as a JPEG?

When using AppleScript to save a copy of an image file as a JPEG on OS X 10.6 Snow Leopard, can "compression level high" be used in the code, or can only "compression" be used?
The part of the AppleScript dictionary for Image Events indicates that "compression level high", "compression level low", and "compression level medium" can be used, but when I type any of those three in the code and try to save the AppleScript file, the below error is displayed, and the word "level" is highlighted in the AppleScript Editor:
Syntax Error
Expected end of line, etc. but found identifier.
-John

you need to open the image in image events before you can save it as a different format.  you have to make a distinction between the image file (a file system object) and the image itself (the data that is the digital representation of the visual image).  what you want to do is open the image file in image events to extract the image data, then resave the image data in the new format.  looks something like this (changing just the last bit of your script):
set theImage to choose file with prompt "Please select an image file:" of type "public.image"
-- other stuff...
tell application "Image Events"
          set theImageData to open theImage
  save theImageData in newPathToSave as JPEG with compression level high with icon
end tell

Similar Messages

  • High memory use when checking downloads folder through browser

    High memory use when checking downloads folder through browser.
    I have a total of 3 DDR2 Gbytes of ram. Pentium(R) Dual-Core CPU T4500 @ 2.30GHz Win 7 home pr. 64bit. Firefox 27.0 beta
    I right click on a file to "open containing folder" from the drop down menu in downloads.
    When the folder has been opened, explorer is trying to index the folder (which it never does completely or well after 5 minutes I close the folder and shut down the dllhost process cause laptop is blazing hot) and memory keeps increasing till no more is available.
    I checked task manager and see that dllhost is the particular process that is causing the spike in memory usage even after closing the folder I right click and stop the process and memory is restored after awhile.

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • Can you automatically delete anchor points when a new image is placed on top - so that it 'replaces'

    Hi all,
    I know that I can delete anchor points but I was wondering if there is a shortcut to do it on a larger scale.
    Can you automatically delete anchor points when a new image is placed on top - so that it 'replaces' the image, only on the parts obviously that you cover with the new one.
    Thank you all

    Hi,
    I'm using CS6, and I have a tree vector image, and I am trying to put names on top, but when I do this to keep it clean with no anchor points (as my other software cant read it with all the points in it) I have to manually delete each one but it deletes the whole path and I then end up with a tree, names on top, and a big gappy circle around the names.
    So really, I wanted to add the names on top, and have that delete all anchors underneath .
    Does this make sense? :S

  • How can I diagnose an intermittent crash when saving in Photoshop CS5 in Windows 7 (64bit)?

    Hello,
    I have been experiencing an intermittent crash of Photoshop CS5 in Windows 7 when saving. I cannot effectively reproduce the problem and am having difficulty diagnosing the cause of the it. I have updated Photoshop to 12.0.4.0 and still experience the crash. Can someone offer advice as to how to resolve this issue? It is troublesome since I lose all my work without any means of recovery when it happens.
    Hardware:
    AMD Phenom II X4 965 3.4GHz
    8GB RAM
    AMD Radeon HD 5450
    Software:
    Windows 7 Home Premium Version 6.1 (Build 7601: Service Pack 1)
    Photoshop CS5 12.0.4 x64
    Thanks in advance.
    Susan

    Hunt,
    Thanks for the advice. Here is what I have done so far which has not alleviated the crashes while saving:
    Only run the application as administrator
    Clear the preferences file
    Disabled virus checking on files I am using
    Disabled virus checking on file writes (just in case the above was not enough)
    Looking at the Event Viewer, these are 3 events logged around the time of the crash (I created a view to include all events within 10 minutes of the crash). Details below (pardon the xml - it is how the event is copied out):
    Log Name:      System
    Source:        Service Control Manager
    Date:          3/24/2012 6:15:11 PM
    Event ID:      7036
    Task Category: None
    Level:         Information
    Keywords:      Classic
    User:          N/A
    Computer:      rocinante
    Description:
    The Application Experience service entered the running state.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Service Control Manager" Guid="{555908d1-a6d7-4695-8e1e-26931d2012f4}" EventSourceName="Service Control Manager" />
        <EventID Qualifiers="16384">7036</EventID>
        <Version>0</Version>
        <Level>4</Level>
        <Task>0</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8080000000000000</Keywords>
        <TimeCreated SystemTime="2012-03-24T22:15:11.759925300Z" />
        <EventRecordID>43050</EventRecordID>
        <Correlation />
        <Execution ProcessID="612" ThreadID="3472" />
        <Channel>System</Channel>
        <Computer>rocinante</Computer>
        <Security />
      </System>
      <EventData>
        <Data Name="param1">Application Experience</Data>
        <Data Name="param2">running</Data>
        <Binary>410065004C006F006F006B00750070005300760063002F0034000000</Binary>
      </EventData>
    </Event>
    Log Name:      Microsoft-Windows-Application-Experience/Program-Telemetry
    Source:        Microsoft-Windows-Application-Experience
    Date:          3/24/2012 6:15:10 PM
    Event ID:      500
    Task Category: None
    Level:         Information
    Keywords:     
    User:          rocinante\susan
    Computer:      rocinante
    Description:
    Compatibility fix applied to C:\Windows\system32\DllHost.exe.
    Fix information: RunAsAdmin, {f5ac3378-b8e4-4f9b-aa9a-d839e5b1ef06}, 0x40102.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-Application-Experience" Guid="{EEF54E71-0661-422D-9A98-82FD4940B820}" />
        <EventID>500</EventID>
        <Version>0</Version>
        <Level>4</Level>
        <Task>0</Task>
        <Opcode>0</Opcode>
        <Keywords>0x1000000000000000</Keywords>
        <TimeCreated SystemTime="2012-03-24T22:15:10.221899700Z" />
        <EventRecordID>123</EventRecordID>
        <Correlation />
        <Execution ProcessID="4924" ThreadID="4796" />
        <Channel>Microsoft-Windows-Application-Experience/Program-Telemetry</Channel>
        <Computer>rocinante</Computer>
        <Security UserID="S-1-5-21-4242290351-10392916-364331048-1000" />
      </System>
      <UserData>
        <CompatibilityFixEvent xmlns:auto-ns2="http://schemas.microsoft.com/win/2004/08/events" xmlns="http://www.microsoft.com/Windows/Diagnosis/PCA/events">
          <ProcessId>4924</ProcessId>
          <StartTime>2012-03-24T22:15:10.140898300Z</StartTime>
          <FixID>{F5AC3378-B8E4-4F9B-AA9A-D839E5B1EF06}</FixID>
          <Flags>0x40102</Flags>
          <ExePath>C:\Windows\system32\DllHost.exe</ExePath>
          <FixName>RunAsAdmin</FixName>
        </CompatibilityFixEvent>
      </UserData>
    </Event>
    Log Name:      ACEEventLog
    Source:        ACEEventLogSource
    Date:          3/24/2012 6:10:07 PM
    Event ID:      0
    Task Category: None
    Level:         Information
    Keywords:      Classic
    User:          N/A
    Computer:      rocinante
    Description:
    0000000053: 2012-03-24 18:10:07:112    Exception <Saving Xml Document>: Access to the path 'C:\ProgramData\ATI\ACE\Profiles.xml' is denied.
    Exception  Called by: ATI.ACE.APM.Server.XmlDocumentSaver::SaverWorker                                                  processID:03216 threadID:(                ) domainName:(CCC.exe                    ) assemblyName:(APM.Server, Version=3.5.4268.23115, Culture=neutral, PublicKeyToken=90ba9c70f846762e)
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="ACEEventLogSource" />
        <EventID Qualifiers="0">0</EventID>
        <Level>4</Level>
        <Task>0</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2012-03-24T22:10:07.000000000Z" />
        <EventRecordID>3086</EventRecordID>
        <Channel>ACEEventLog</Channel>
        <Computer>rocinante</Computer>
        <Security />
      </System>
      <EventData>
        <Data>0000000053: 2012-03-24 18:10:07:112    Exception &lt;Saving Xml Document&gt;: Access to the path 'C:\ProgramData\ATI\ACE\Profiles.xml' is denied.
    Exception  Called by: ATI.ACE.APM.Server.XmlDocumentSaver::SaverWorker                                                  processID:03216 threadID:(                ) domainName:(CCC.exe                    ) assemblyName:(APM.Server, Version=3.5.4268.23115, Culture=neutral, PublicKeyToken=90ba9c70f846762e)
    </Data>
      </EventData>
    </Event>
    I am not sure if any of these are related to my photoshop use since none of them reference the executable. Yet, maybe they are inadvertently influencing its operation? I will look at indexing settings next and keep pressing forward.

  • High RAM use when logging in

    For the last year or so I've noticed that a great deal of RAM has been marked as in use when I open Activity Monitor. I just upgraded to Mavericks hoping that the new memory compression feature would help alleviate this problem. However, logging in for the first time I saw that 3.8 GB of my 4GB was marked as in use. Now that I have Activity Monitor and Safari running it shows 3.96 as in use. I also run Dropbox and Adobe Creative Cloud, but those only take 60MB and 36MB respectively as I write this. Scrolling through the active processes I see a ton of things running. Does anyone have an idea on why so much RAM would be used up and what I can do to alleviate the problem? Thanks.

    Since installing Mavericks I have never seen my RAM go below 3.5. Before it would max out at about 2-2.5 with the same programs open. So idk too much about Mavericks actually being less intensive on RAM or not.

  • Can Oracle SQL Flavor be used When BC4J is deployed in WebLogic as EJB?

    Hi,
    Does anybodys know if Oracle SQL Flavor can be used When BC4J is deployed in WebLogic as EJB?
    We succeeded in deploying BC4J to WebLogic 7.0 & 6.0, but we had to select the SQL92 option for SQL Flavor when the first BC package is created in a project. Selecting Oracle option for SQL Flavor will cause EJB to fail, and client get a ClassCastException.
    We still want to use Oracle SQL, is it possible to use it with WebLogic?
    Thanks.

    We figured out that Oracle SQL Flavor can be used with WebLogic, but only with DB connections created from JDBC URL, not work with DB connections from WebLogic connection pool.

  • How can I reduce the file size when saving a psd as a pdf

    I have a psd with graphics and text, it is 8.5 x 11, 300 ppi
    I flatten the image and go to save as .pdf I un-check all of the options in general.
    In compression, I have tried a dozen different combinations and the way I've found to get a document that is not pixelated or blurry is to use jpeg 2000 > lossless or jpeg > maximum.
    So I have a high quality document but the file sizes are around 900 kb.
    I have downloaded other people's documents of the exact same type and size (8.5 x 11, 300 ppi) that I am making and viewed them in Photoshop, they are not pixelated or blurry and their file sizes are 300 kb or even less than 200 kb
    How are they doing this?!

    Delete all unused, invisible layers.
    Sometimes zip compression is better than jpg compression (in the pdf output settings). Zip is lossless, and works better with non gradient colour or no images.
    Flattening the image before you save it to pdf can reduce the file size if you are using jpg compression.
    Post a preview of your pdf and we can comment further on how to reduce the file size.

  • Can the home app also use the saved passwords of the desktop Firefox version?

    I rely on the saved password feature of Firefox for my bookmark sites. Can those saved passwords also be transferred to the Home Firefox on my iPad and iPhone?
    Also is there a way to have the iPad version in a higher resolution?
    Thanks

    I'm sure I'm missing something obvious here. I've signed up for a Firefox Sync account and installed Firefox Home on my iPad - but I can't see any sign of saved passwords being synced. Where would they be on the iPad? They're not auto-suggested even in the browser embedded in the Home app.
    Ideally, I'd like them to be available directly in Safari too, but I realise that this might be harder to do.

  • Can iTunes credit vouchers be used when family sharing?

    My son recently redeemed an iTunes voucher on his account but every time he tries to purchase a song, it asks me for permission and to charge it to my account as the administrator. I have been declining because I don't want it charged to my credit card so the poor kid can't download anything even though he has $30 credit to use. He wants to use his credit but there doesn't seem to be an option to do this. Is there a simply way around this?

    Hello there Latonabe,
    Any account credits that are on your sons account will be used first before your card is charged, according to this article:
    Family purchases and payments
    After you set up your family, any time a family member initiates a new purchase it will be billed directly to your account unless that family member has gift or store credit. First, their store credit will be used to pay the partial or total bill. The remainder will bill to the family organizer's card. As the family organizer, any receipts generated by the transaction will be sent to you. Learn more about how iTunes Store purchases are billed.
    THis article will show you how to check the balance of account credits on the account with your son to verify the full amount will be covered:
    iTunes Gift balances
    Thank you for using Apple Support Communities.
    Regards,
    Sterling

  • Can mails in mac be used for saving email on mac and saving a copy of same on server at the same time?

    IMAP has a problem in mails

    If it's an IMAP account, it should stay on the server anyway, unless you've set up a rool to move an email to a folder "on my mac". However, you can set up rules so that it stay's on the server as well. Just hit the plus button in the rules section.

  • How can I hide the master page when saving a pdf?

    I designed a form that uses a master page so that I can use headers and footers without changing 10 different pages.  When I save to PDF so the form can be filled out it saves the Master Page as the first page though it has no content.  I have to save the PDF as a static file because it needs to be filled out on the iPad.
    Anyhelp please?

    Hmm,
    Not really. Acrobat must display at least one page of the form. You can set the presence of all of your Design Pages to hidden, but Acrobat will display at least one instance of the Master Page.
    The Master Page is available in LC Designer for objects that you want to repeat on more than one page. Yes, typically this includes header and footer objects.
    If you want to hide all of your main form pages, then include a blank page and display this when hiding all of the other pages. See an example here: http://assure.ly/frjYW5.
    There is also an example here for displaying/hiding pages on a loop: http://assure.ly/kyMP6l.
    Hope that helps,
    Niall

  • TS3430 high processor use when running iTunes

    Causes error message of high processor demand by "Apple Push". even when no activity in iTunes itself. unable to play music or open any other programs until I shut down iTunes.

    Close your iTunes,
    Go to command Prompt -
    (Win 7/Vista) - START/ALL PROGRAMS/ACCESSORIES, right mouse click "Command Prompt", choose "Run as Administrator".
    (Win XP SP2 n above) - START/ALL PROGRAMS/ACCESSORIES/Command Prompt
    In the "Command Prompt" screen, type in
    netsh winsock reset
    Hit "ENTER" key
    Restart your computer.
    If you do get a prompt after restart windows to remap LSP, just click NO.
    Now launch your iTunes and see if it is working now.
    If you are still having these type of problems after trying the winsock reset, refer to this article to identify which software in your system is inserting LSP:
    iTunes 10.5 for Windows: May see performance issues and blank iTunes Store
    http://support.apple.com/kb/TS4123?viewlocale=en_US

  • Setting the JAR compression Level from a .DEPLOY file

    I am trying to find a straightforward method to use the best compression level possible for the jar files created from JDeveloper (10.1.3). I do have the "Compressed" checkbox checked.
    Currently it is creating Jar files that are not compressed at the best level possible, (the files it creates are about 8 megs). If I open up the jar file in an external compression tool, and then re-compress it as a Jar, I am able to get a file almost half the size... (4-5 megs). And yes, this jar file still works flawlessly in all of our environments. (it is used as a webstart file)
    Is there any way to adjust the compression level that JDeveloper uses to compress the jar?
    Thanks,
    Mike Hess

    Hi Mike,
    I had a look at the code, and unfortunately there seems to be no way to set the compression level. It's using a ZipOutputStream with the default compression level, and deployment does not expose any user accessible way to override this (I was hoping to find some kind of "hidden" setting, but no joy).
    I have filed bug 4567053 to track this (should be visible on metalink within around 24 hours). In the mean time, perhaps using Ant or External Tools is an option? You could probably use either to essentially post process the jar in the way you're manually doing it now if the initial assembly of the jar performed by the deployment feature is tricky to capture in a build file.
    Thanks,
    Brian

  • How can I avoid image 'distortion' when saving jpegs from Photoshop?

    I've created a logo with a transparent background and saved as an eps in Illustrator CS3.  To create a jpeg I then opened opened the eps in Photoshop CS3, set the resolution at 300ppi and then saved the image as a jpeg.  The image views ok on screen but when it is inserted into a word document and then printed, the background of the image is 'blurry' - it has small red dots through and you can see also the 'edges' of the image.  Not sure what I'm doing wrong!  Any help would be greatly appreciated.

    Thanks for all the ideas.  Had to have a jpeg at the 'clients' request so I couldn't use the .psd and .png options.
    I came across some info stating MS Word doesn't support CMYK jpeg which I did not realise.  So to solve the issue, I ended up opening the eps file as a Smart Object in RGB colour mode at the required resolution in Photoshop CS3 and then saving as jpeg.  The jpeg then printed perfectly after being inputted into a Word document - no blurriness or resolution issues.  I just had to advise the 'client' about the colour issues with RGB vs CMYK and not to use the jpegs for any professional printing.
    Thanks again.

  • What is the best way to keep high res when saving "for web"

    the files i'm saving for web so i can get them in jpg (or gif) format are coming out very pixelated.  this is when i print the image. 
    what is the best way to save for web an image and keep the resolution good. 
    using for a business card template.  avery template will let me attach images i want to the project.  to do this..  i "get file from computer" and it drops the image in but real small... then you are supposed to enlarge it onto your work however you want.  well when i enlarge this image file, it gets pixelated badly.  i'm thinking it's the way i'm saving it.  i do not adjust anything when i save.  maybe i should.  this is where i need guidance. 
    this is what avery template notes about the images i am allowed to use - When uploading the image, the maximum size allowed is 4 MB.  You can only upload JPG and PNG images either as RGB or CMYK.  so when you recommend things, can you please keep this in mind
    thank you for oyur time.

    Aida,
    When you save with the default template using save for web it is generally a very low settings.
    While in the save window you can define the pixel size of the image you want with quality as well as resolution too.
    Refer to tv.adobe.com video save for web or Adobe help file for detailed instructions.
    Mandhir

Maybe you are looking for

  • How to install Apple's Rosetta emulation software?

    Sigma Chess is a legacy PowerPC application and therefore needs Apple's Rosetta emulation software in order to run on Intel based Macs. This is pre- installed on Mac OS X 10.5 and earlier, but must be installed manually on the new Mac OS X 10.6. Plea

  • Numbers got very slow

    Hi, I have updated numbers for the new version (Dec, 4th release) and the same worksheet I used to work got very slow, almost impossible to work with. I was wondering if someone else got the same issue.

  • Oracle12.1.1 Installation on OEL 5.4

    Hi I am going to install Oracle12.1.1 on OEL 5.4 my question here will OEL5.4 installation cover all RPMs or need to install additional RPMs? Thanks With Regards OH

  • THE ANSWER FOR NEW SHUFFLES

    Like you and several thousand others,there seems to be a problem with shuffle out of the box.This worked for me. SAVE ANY MUSIC FILES TO A SEPARATE FOLDER BEFORE PROCEEDING BECAUSE YOU WILL LOSE ALL INFO STORED ON YOUR IPOD. Try this:1.Click start in

  • How do I get rid of the 'other' on my iPhone 5?

    I have no idea what it is, but it is aroung 3GB and it won't even let me back up my phone. It always says error occured. Is there something I can delete?