AppleScript PhotoShop Resize Times Out?

Hi all,
I've found what seems to be a pretty decent image resize applescript to use with photoshop cs3, but every time I try to use it, it just hangs on the sizing image dialog box. Anybody have any suggestions?
tell application "Adobe Photoshop CS3"
activate
-- set parameters
set my_files to choose file with prompt "Choose some files" default location (path to desktop) with multiple selections allowed
set destination_folder to choose folder with prompt "Choose destination folder" default location (path to desktop)
set destination_path to destination_folder as string
set sizeofthumbnail to text returned of (display dialog "Set size of thumbnail" default answer "100")
set sizeofthumbnail to sizeofthumbnail as integer
set output_quality to text returned of (display dialog "Set quality of final output" default answer "60")
set output_quality to output_quality as integer
-- for each file
repeat with my_file in my_files
set original_extension to name extension of (info for my_file)
open my_file showing dialogs never
set my_doc to the current document
set original_name to the name of my_doc
set doc_width to width of my_doc
set doc_height to height of my_doc
if doc_width > doc_height then
set new_width to sizeofthumbnail
set new_height to round (doc_height * (new_width / doc_width))
else
set new_height to sizeofthumbnail
set new_width to round (doc_width * (new_height / doc_height))
end if
resize image my_doc width new_width height new_height resample method bicubic sharper
tell current document
export in live_folder as save for web with options {class:save for web export options, web format:JPEG, quality:target_quality}
close saving no
end tell
end repeat
end tell
-- finishing touches
tell application "Finder"
activate
open folder destination_folder
beep
end tell

I commented out the export line (I don't have CS3, only an old version of CS) and it seems to work fine. the problem, then, is with the export line, and (at a guess) the issue might be the odd way you've specified the document. instead of using the export command in a document tell block, try 'export current document in live_folder as...' and see if that helps.

Similar Messages

  • Still Frame altered in Photoshop resizes in iMovie

    Hello,
    When I export a still frame as a pict file from iMovie and then edit that still frame in photoshop (resaved as a pict file), the file imports back into iMovie resized. It enlarges a bit more than the previous still frame. Does anyone know how to avoid this resize issue?
    Thanks for any help

    I am not at home now to verify or play with it first hand, but if I was to take a guess it would probably be because of the 640 vs. 720 conversion iMovie does behind the scenes with the horizontal pixels. See TVs use rectangular pixels while computers use square pixels. TV pixels are slightly taller than wide or put another way, the pixels are thinner than on a computer. So 720 thin TV pixels equal about 640 square computer pixels. What iMovie does is it will show you everything on your screen as 640 horizontal pixels so everything looks correct (height to width ratio looks right and nothing is stretched or squished), but really everything in iMovie is 720 pixels wide because that is the format needed for standard TV sets.
    So because of this, and since Apple wants everything very simple for this application, when you import still images, it expects 640x480 (for North American TV; PAL has a different vertical size), which it then will (behind the scenes) convert to 720 thin/TV pixels. If you import something other than that, iMovie will resize accordingly.
    OK so here is what I am not sure of but am speculating might be going on but can not check at the moment. When you select a frame and export that frame as a still image, I am guessing you really are getting a 720x480 image. This would be noticeable when opened in your image editor in that the image should now look a bit stretched out horizontally (yes, the camera really does add 10 lbs!). Now you do your edits, save the image which is still 720x480. When you import this image back to iMovie, it sees 720, is expecting 640 and resizes accordingly, so your image ends up pinched in (gets thinner). So on the screen it will tend to look like it got taller, when in fact it instead got pinched from the sides. Is that what you are seeing?
    Again I am only guessing here and maybe saving a still out of iMovie gives you a 640x480, in which case none of what I said above applies.
    However if it all sounds correct above, then the solution is after you open the file in Photoshop, resize it and this is one of those rare times where you actually want to UNCHECK the box that keeps the ratio of the photo the same. So now you tell it to resize from 720 to 640 but not to change the 480 dimension. Your photo should now look normal (not stretched out) and after editing, saving, and re-importing to iMovie should look correct.
    Patrick

  • RCA Connection Pool idle Time-Out takes no effect !

    My question description goes here.
    According to JCA specification, I developed my 'ManagedConnectionImpl' class from the interface 'ManagedConnection'. I realize the 'destroy()' function to send out logout request to the EIS.
    Then I deployed the connector in Sun Java System Application Server, I noticed there are two parameters in Connection Pool part, they are:
    1. Idle Timeout. It said it's the maximum time that a connection can remain idle in the pool. I assume the connection will be removed after the specific time expired and before it's removed it will call the recallable function, 'destroy()', in my concrete class, 'ManagedConnectionImpl'.
    2. Pool Resize Quantity. it said it's number of connections to be removed when pool idle time expired.
    I am weird about it. I think EIS had itself session control strategy, if the specific session time-out expired, it will invalidate this session. So I think we will set 'Idle Timeout' in application server to be shorter than the EIS session time-out. If the 'Idle Timeout' in application server expired, it should remove all connections inside otherwise maybe the connection with invalid session will exist! (the background knowledge is our system will return back soap fault when it meets invalid session, so the invalid connections will not be removed by switching on your configuration item, 'On Any Failure')
    So I set "inital and minimum pool size" to 8, "maximum pool size" to 32 and "Pool Resize Quantity" to 32. (I expect AS to remove all when pool idle time expired)
    After deploying, I send out requests at the first round and wait for the time expired but I can't see the desired logout requests from pool automatically even one. Firstly I guess if my recallable function definition is wrong but when I shut down the Application Server, the desired logout requests are sent out from pool automatically. So I think my recallable function definition is workable.
    What's your comments on it?
    P.S.
    I am using Sun Java System Application Server 8.1.
    Thanks in advance!
    BRs
    /Leo

    I have had following test to ensure I sent out notification to listener.
    [#|2005-08-23T16:14:25.061+0800|INFO|sun-appserver-pe8.1_01|javax.enterprise.system.stream.out|_ThreadID=12;|
    It's in managed env!|#]
    [#|2005-08-23T16:14:25.062+0800|INFO|sun-appserver-pe8.1_01|javax.enterprise.system.stream.out|_ThreadID=12;|
    enter matchManagedConnections() !|#]
    [#|2005-08-23T16:14:25.062+0800|INFO|sun-appserver-pe8.1_01|javax.enterprise.system.stream.out|_ThreadID=12;|
    try to find a matching and existing one, reuse it!|#]
    [#|2005-08-23T16:14:25.062+0800|INFO|sun-appserver-pe8.1_01|javax.enterprise.system.stream.out|_ThreadID=12;|
    Found a matching and existing one, reuse it!|#]
    [#|2005-08-23T16:14:25.495+0800|INFO|sun-appserver-pe8.1_01|javax.enterprise.system.stream.out|_ThreadID=12;|
    tearDown() is called, the application-level connection is released!|#]
    [#|2005-08-23T16:14:25.496+0800|INFO|sun-appserver-pe8.1_01|javax.enterprise.system.stream.out|_ThreadID=12;|
    enter calling close() of managed connection.|#]
    [#|2005-08-23T16:14:25.496+0800|INFO|sun-appserver-pe8.1_01|javax.enterprise.system.stream.out|_ThreadID=12;|
    Start calling close() of managed connection.|#]
    [#|2005-08-23T16:14:25.496+0800|INFO|sun-appserver-pe8.1_01|javax.enterprise.system.stream.out|_ThreadID=12;|
    start to notify the listener the completeness of connection.|#]
    [#|2005-08-23T16:14:25.496+0800|INFO|sun-appserver-pe8.1_01|javax.enterprise.system.stream.out|_ThreadID=12;|
    notify the listener the completeness of connection successfully.|#]
    Whether it's related with the initial and minimum number parameter? Although I found it will not be created during AS start-up and will be created at the first request.
    Whether it shall be kept to meet the minimum requirement? I have failed to set it to 0.

  • Photoshop CS6 has out of memory errors under Mac OS X 10.7.4

    Has anyone who has a 2008 MacBoo Pro with the NVIDIA GeForce 8600M GT 512 MB graphics card tried running Photoshop CS6 under Mac OS X 10.7.4?
    On my MacBook Pro, PS CS6 launches; however, any action results in an out of memory error.  The CS6 versions of After Effects, Premiere Pro and Illustrator all launch and run as expected under 10.7.4.
    If I switch to my Mac OS X 10.6.8 startup volume, Photoshop CS6 runs as expected.
    I have support cases open with Adobe, NVidia and Apple.  Adobe thinks I need to update the display drivers.  NVidia says display drivers must be provided by Apple.  Apple says that the display drivers are current.  The Apple support agent said that he can escalate the case if the issue can be reproduced on more than one computer.
    I'd love to keep my MacBook Pro running another year or so without having to reboot in 10.6.8 every time I need to use Photoshop.  I'd stay with 10.6.8, but of course iCloud requires 10.7.4.
    I have not tried 10.8 yet, but it's on my troubleshooting list.
    Also, PS CS6 runs fine under Mac OS X 10.7.4 on my 2010 iMac.
    Thanks in advance for any feedback.
    - Warren

    It looks like it was indeed the display driver for the NVIDIA GeForce 8600 GT 512 MB graphics card inside my 2008 MacBook Pro.
    It seems that this driver only gets installed if you upgrade from Mac OS X 10.6.7 to 10.7.4 while the startup drive is connected to the MacBook Pro itself.  I had updated while the startup drive was connected to my 2010 iMac. Accordingly, I could have reinstalled Photoshop 100 times without it ever launching as expected.  Having used the external startup drive with three other Apple computers (all 2010 or newer machines) with Photoshop CS6 launching as expected, I had just assumed (mistakenly) that it would work as expected with my 2008 computer.
    So, this was simple enough to resolve by upgrading the OS on the external startup drive while having it connected to the MacBook Pro.   In hindsight, this makes perfect sense.
    -Warren

  • Repeat Loop times out and I don't want it to

    Maybe there is a better way to do this but I want an action to take place whenever the modification date of a certain file changes. This is what I use but it errors because of a timeout after about 10 mins if the mod date doesn't change. I need this to be checking all the time.
    on idle
    tell application "Finder"
    set UpdatedOLD to modification date of file aFile
    set UpdatedNEW to modification date of file aFile
    end tell
    repeat while UpdatedOLD = UpdatedNEW
    tell application "Finder"
    set UpdatedNEW to modification date of file aFile
    end tell
    end repeat
    end idle
    How can I get this to work?

    Hello
    I think you have stepped on a land mine set by OSX 10.6.
    There's a fatal bug in Apple Event Manager in 10.6 such that one event in every 65535 events will be lost and never be replied, which will result in Apple Event timeout error on sender. This bug has been reported shortly after the 10.6 release and has not yet been fixed as of 10.6.2.
    In your current script, you're continuously sending event to Finder and sooner on later send an event with the specific event id that is doomed to be lost. Judging from the time till you see the time out error, that is 10 min, you're at most sending 65535 / 600 = 109.225 events / sec to Finder. You can reduce the number of events by inserting some delay, e.g. 'delay 1' in your repeat loop but it can only defer the failure.
    cf.
    Re: Timed Out (Silence)
    http://lists.apple.com/archives/applescript-users/2009/Oct/msg00117.html
    Re: spurious timeout on nth Apple event on Snow Leopard
    http://lists.apple.com/archives/applescript-users/2009/Nov/msg00041.html
    A better way to achieve your task would be to let a launchd agent watch the file.
    A recipe is as follows.
    1) Save a compiled script in :
    ~/Library/Scripts/launchd/watchdog.1.scpt
    with contents :
    --SCRIPT
    -- Here put your script that is to be triggered when the file is modified.
    -- e.g.
    tell application "System Events"
    display dialog "The file is modified." giving up after 10
    end tell
    --END OF SCRIPT
    2) Save a UTF-8 plain text file in :
    ~/Library/LaunchAgents/watchdog.1.plist
    with contents :
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>Label</key>
    <string>watchdog.1</string>
    <key>Disabled</key>
    <false/>
    <key>Program</key>
    <string>/usr/bin/osascript</string>
    <key>ProgramArguments</key>
    <array>
    <string>osascript</string>
    <string>/Users/USER_NAME/Library/Scripts/launchd/watchdog.1.scpt</string>
    </array>
    <key>WatchPaths</key>
    <array>
    <string>POSIX_PATH_TO_THE_FIILE</string>
    </array>
    </dict>
    </plist>
    *Change USER_NAME to your user name and POSIX_PATH_TO_THE_FIILE to the POSIX path to the file to be watched.
    3) Issue the following command in Terminal to load the launchd agent :
    launchctl load ~/Library/LaunchAgents/watchdog.1.plist
    Or
    3a) Log-out and re-log-in to load the launchd agent.
    *The name 'watchdog.1.plist' and 'watchdog.1.scpt' and the script's location '~/Library/Scripts/launchd/' are mere examples. You may change them as you see fit.
    cf.
    http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/m an5/launchd.plist.5.html
    http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/m an1/launchctl.1.html
    Good luck,
    H
    Message was edited by: Hiroto (fixed typo)

  • Lens correction time out bug w7 , solved disabled Desktop Composition

    Hi
    i 'm running photoshop cs5 under windows 7 ultimate 32bit
    every time , i run the lens correction filter i got a time out error
    today i tried to run photoshop ,i checked in the compatibility disable desktop composition and the error disapeard
    with disable desktop composition do i lose some photoshop feature , colors and so on?
    because when i run it now , w7 pop up a warning
    thanks

    You should normally be able to run Photoshop with Aero enabled.  I suspect your video drivers may need updating.  What video card/interface do you have, and what version drivers?
    Also, how much memory does your video card have on it?  You may also find some improvement by altering the Advanced OpenGL Mode in the Edit - Preferences - Performance dialog, e.g., changing from "Normal" to "Basic".
    -Noel

  • After downloading updates in C5 camera raw stopped working. I am trying to download DNG CONVERTOR but when I press 'download' it just times out.

    After downloading updates in C5, camera rawstopped working. I am trying to download DNG CONVERTOR but when I press 'Download' it just times out. Is Photoshop having problems as I have tried for three days now.

    BOILERPLATE TEXT:
    If you give complete and detailed information about your setup and the issue at hand, such as your platform (Mac or Win), exact versions of your OS, of Photoshop and of Bridge, machine specs, what troubleshooting steps you have taken so far, what error message(s) you receive, if having issues opening raw files also the exact camera make and model that generated them, etc., someone may be able to help you.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • CS6 Photoshop Update blacking out my workspace!!!

    Someone help me--I am VERY busy as this is wedding season--I have THOUSANDS OF IMAGES and now Photoshop is blacking out whenever I make a selection. The navigation screen still shows the image but the workspace goes blank till I click on it--which undo's the selection!!! Everthing was fine till this morning when I was told there was an update--I want to back in time : (
    HELP!!! I am too busy for this!!
    Thank very, very much!!

    Good day!
    Does turning off »Use Graphics Processor« in the Performance Preferences and restarting Photoshop have any bearing on the issue?
    Please read this:
    http://forums.adobe.com/message/4587299#4587299
    I am too busy for this!!
    I know that factoring in »unforeseeable problems« is close to an oxymoron but working under a schedule that will not allow for any »unforeseeable problems« seems very optimistic.
    Regards,
    Pfaffenbichler

  • Trying to purchase LR CC, entered payment options, then page times out

    this is the page that times out.
    http://shop.adobe.com/store/adbehap/en_SG/buy/ProductID.298013300/ThemeID.31893000/Currenc y.SGD/clearcart.yes
    tried various browsers already. clueless...

    For additional help, reach us at http://helpx.adobe.com/contact.html
    General Info
    Chat start time
    Apr 26, 2015 7:51:52 PM PST
    Chat end time
    Apr 26, 2015 8:25:47 PM PST
    Duration (actual chatting time)
    00:33:54
    Operator
    Jaymani
    Chat Transcript
    info: Thank you for your patience.
    While you wait, you can try our community forums where experts are available 24 hours a day, 7 days a week.
    info: We are still assisting other customers, thank you for your patience. You can also try our community forums, available 24 hours a day, 7 days a week.
    info: We are still assisting other customers, thank you for your patience. You can also try our community forums, available 24 hours a day, 7 days a week.
    info: You are now chatting with Jaymani.
    Jaymani: Hello! Welcome to Adobe Customer Service.
    Jaymani: Hello Timo
    Jaymani: I understand that you are unable to place order for Lightroom.
    Jaymani: I will be glad to help you with this.
    Timo Predoehl: hi, so how to purchase?
    Jaymani: Just to confirm, are you trying to purchase Lightroom as Single app?
    Timo Predoehl: I selected the basic LR CC option for SGD 156/year for 1 user
    Jaymani: Please allow me 2-3 minutes while I check the information for you.
    Timo Predoehl: thanks. after I clicked proceed, I got to this page (http://shop.adobe.com/store/adbehap/en_SG/buy/ProductID.298013300/ThemeID.31893000/Currenc y.SGD/clearcart.yes) which times out without further notice
    Timo Predoehl: error message: Server does not respond
    Jaymani: Let me inform you that LIghtroom does come as single application, it comes with Photoshop as bundle with S$1300/mo.
    Jaymani: LIghtroom does come as single application, it comes with Photoshop as bundle with S$1300/mo as Creative Cloud.
    Jaymani: If you want to purchase Lightroom as single you can place order as stand alone product.
    Timo Predoehl: I am not sure what you are talking about. I am referring to your offer on https://creative.adobe.com/plans?store_code=sg
    Timo Predoehl: single user license is SGD13/mo or SGD156/year
    Jaymani: Thank you for confirming.
    Timo Predoehl: so, how to purchase then?
    Jaymani: In that page after selecting the plan please select annual plan, pai monthly or annual plan, prepaid and click on Buy now.
    Jaymani: Then sign in with your Adobe Id and password to place the order.
    Jaymani: Please let me know if you are getting the same error?
    Timo Predoehl: Your file 'Bildschirmfoto 2015-04-27 um 11.15.09.png' was successfully uploaded.
    Timo Predoehl: yes. http://shop.adobe.com/store/adbehap/en_SG/buy/ProductID.298013300/ThemeID.31893000/Currenc y.SGD/clearcart.yes just times out
    Timo Predoehl: Your file 'Bildschirmfoto 2015-04-27 um 11.16.29.png' was successfully uploaded.
    Timo Predoehl: cannot open page - server not responding
    Jaymani: Please give me a minute to check this.
    Jaymani: In this case I will provide you Phone support contact. They will help help you to place your order.
    Jaymani: Singapore: 800 448 1642
    Jaymani: Please call on this number to get help for placing order.
    Timo Predoehl: thanks.

  • Podcast synchs time out since I upgraded to 7.0.2

    I have a 5th Gen IPOD Touch, and recently upgraded it and my ITUNES account to the latest software.  Since then, my podcasts won't synch, or if they do (some do, some don't, sometimes it just times out) they show an error message when I try to play them.  I have the Cloud turned on, and usually synch to 4 podcasts every day.   My PC is a Windows 7 Professional package with all updates current.

    You can get the Filterstorm app. Use it to resize your pics to 2048 x 1536 (retina display resolution). It will then fit the screen without further adjustment.

  • Can i use photoshop touch with out internet  photoshop in off line

    can i use photoshop touch with out internet  photoshop in off line

    If the question was if you could use PS Touch without Internet access, yes. I do it all the time.

  • SSO Partner Application and Session Time out

    Hi ,
    We have an application on forums.oracle.com which is implementing the Authentication scheme as SSO, that is working well, now we want to implement Session Time out if the user is idle for some time and ask him to login again after the session fails, I have tried to implement this feature as given by Scott in the thread session timeout , well the problem is since we dont have a login page here how do we set the cookies owa_cookie.send(
    name => 'HTMLDB_IDLE_SESSION',
    value => to_char(sysdate+(20/1440),'DD-MON-YYYY HH24:MI:SS'),
    expires => null,
    path => '/',
    domain => null
    and where is the current point to implement it.
    Any help on this is greatly welcome.
    Thanks in Advance.

    Naveen,
    I don't remember how the solution works. But if you don't have a login page you can usually put code in the post-authentication process of your authentication scheme to do whatever the login page process would have done.
    Scott

  • CRM WEB UI - Time out Pop-up

    Dear All,
    We have a business requirement to monitor and optimize the CRM WEB UI timeout and other related issues.
    I would like to have time-out pop-up for the call center agents  and hence they could better manage the sessions .
    This will avoid loosing the valuable customer data for the session and so on.
    We are now working on the following threads with CRM Technical folks.
    Please share your experience or the detailed steps if you had implemented already.
    SAP  note 1877120 - CRM-IC: session timeout issue with CRM 7 EHP1 and higher
    Also , have a look http://scn.sap.com/community/crm/webclient-ui-framework/blog/2012/05/17/session-time-out-warning-message-on-ui
    2092893 - Session Time Out Notification
    Regards
    Venkat

    Hello Venkat,
    For business roles of type IC Webclient, you have to implement SAP Note 1877120. Don't forget to update your view layout in your custom enhancement if you have enhanced CRMCMP_IC_FRAME/HiddenView.
    After implementation of 1887120, also implement 1977631 and 1955366.
    Best Regards,
    Sigrid

  • Getting time out error when running the assigned verification in DRM 9.3.2.

    Hi,
    I have installed DRM 9.3.2.0.0 in my system (windows 7), when i am trying to run assigned verifications i am getting the time out error within a minute.
    As suggested by oracle,I have added DWORD with value 480000 under Master Data Management in Registry editor. But still getting the error.
    Please suggest a solution for this issue.
    regards,
    sathiya

    Please suggest me the solution.
    regards,
    sathiya

  • Session time out when trying to redeem card!?

    hi, I have tried to redeem my card 5 times now, and itunes keeps saying "session time out your sessions has timed out please try this operation from beginning" I am dualbooting windows xp and windows 7, I have used both OS's and still the same thing. when I try to redeem it on my ipod touch it tells me I have the wrong code. I do not have a mac availble im on vecation and only brought the PC laptop.
    if it matters im using the itunes canadian store.

    This worked for me:
    Establish in her router a WEP 128 bit data encryption password. (Post back if you need help on this). Apparently macs have slightly different Airport drivers and work better with WEP 128 bit than with WPA although this doesn't explain why my friend's MB had your mum-in-law's problem but could connect to my WPA protected network - go figure! Anyway, try a different password encryption and see if that works.
    As for not sending mail, check with your Mail Server what the SMTP setting should be.
    Joe

Maybe you are looking for

  • I entered my phone chip into my iPad. How do I use the phone now?

    I have the iPad 2 with the phone chip. I put the phone chip in and I don't know how to use the phone

  • [SOLVED] Kernel Panics made me cry.

    rtl8180_init:Error channel plan! Set to default. That's the only "Error" I could grep out of my dmesg log, I should have snapped a picture. I had three kernel panics earlier today (this is after two panics on the 18th), the result of which has been a

  • IDVD 4 now freezes the entire computer during burning

    Hello, iDVD 4 now freezes my entire computer during burning somewhere around stage 3. I can't even force quit. This never happened before - it does so while burning a project that had been burned successfully many times in the past and also new proje

  • How far away is the eyedropper fix?  This is getting really bad.

    I just went to do some colour-correction on one of four TVC's we are getting out this afternoon, and realised I had installed Lion, and the eyedropper won't work on anything!!!   I can't select a colour on any colour-correction tools in Premiere, whe

  • LCCS Screenshare-How to view the shared screen?

    Hi all,                     Im new to LCCS,doing lccs screen sharing application using Flash Builder 4.I have used session.streamManager.maxP2PStreamPublish = 20;    session.streamManager.streamMulticast = true to publish my screen,How can i view the