PSCS3 Mac: Can't get Applescript to open "desktop:folder:file.jpg"

I have Photoshop CS3 and am scripting a lengthy workflow, and part of it requires that I get Metadata out of files using Photoshop.
I can not get Photoshop to open a file. Once I have the file open, I can get the metadata out using UI scripting, but I have tried numerous approaches to open files and it has me stumped.
I am making it as a function that I can call from the main script which compares a new list of files with a list that is a few minutes old to determine which files are new and repeats with each file in the list. So the function will be getting a file name or a path.
Any help would be greatly appreciated!
Brian

I got it! It needs to be an alias class path, and I had to concatenate the path incrementally before finally the whole path is in one variable I could coerce into an alias.
Of course, this is just one segment of the whole workflow.
tell application "Finder"
activate
set fileList to name of (items of folder "to gallery" of desktop)
repeat
set newFileList to name of (items of folder "to gallery" of desktop)
if length of newFileList > 0 then
repeat with thisFile in newFileList
if thisFile is in fileList then
else
my PSInfoGalAdd(thisFile)
end if
end repeat
set fileList to newFileList
end if
delay 30 --This will eventually be 4 minutes
end repeat
end tell
on PSInfoGalAdd(thisFile)
tell application "Adobe Photoshop CS3"
activate
set desktopPath to path to desktop
set toGalPath to desktopPath & "to gallery:" as string
set wholePath to toGalPath & thisFile
set openIt to wholePath as alias
open openIt
tell application "System Events"
tell process "Adobe Photoshop CS3"
key code 34 using {command down, option down, shift down} --File info window
delay 4
repeat 12 times
key code 125 --down arrow to Origin
delay 0.2
end repeat
repeat 5 times
key code 48 --tab to credit
delay 0.2
end repeat
key code 8 using command down --copy
delay 0.3
set credit to the clipboard
repeat 3 times
key code 48 --tab to instructions
delay 0.2
end repeat
key code 0 using command down --select all
delay 0.3
key code 8 using command down --copy
delay 0.3
set headline to the clipboard
key code 48 --tab to transmission reference
key code 0 using command down --select all
delay 0.3
key code 8 using command down --copy
delay 0.3
set body to the clipboard
key code 48 --tab
key code 36 --return key to dismiss info window
end tell
end tell
end tell
end PSInfoGalAdd

Similar Messages

  • How can I get Quicktime to open my WMA file- it says a required codec is not available

    How can I get Quicktime to open my WMA file- it says" a required codec is not available"?

    please jon, where I can find those "Flip4Mac" codec packages?
    Gp to http://www.telestream.net/flip4mac/ to see a comparison list of codec components available and what each set can do.

  • How can I get firefox to open a local file on Windows 8.1via File:open?

    I am trying to open a file from the desktop for viewing as a webpage. It is edited in MS Word. When I open the file it just shows the the text of the file, which is html code, it does not run the file as a webpage. How do I get the file to run as a webpage? Thank you.

    Make sure that the file has the .html file extension.
    That should be sufficient.
    Windows hides some file extensions by default.
    Among them are .html and .ini and .js and .txt, so you may only see file name without file extension.
    You can see the real file type (file extension) in the properties of the file via the right-click context menu in Windows Explorer.

  • HT1152 All this help info tells me to use idvd, but I can't get it to open.  I asked the applecare guy and he says the new macs don't include idvd any more, so why do all the menu and help items say to use it?  I know there's other dvd burner software, wh

    I want to burn my imovie to a dvd.  All the help info says to use idvd but I can't get it to open.  The applecare guy said idvd is no longer included in new macs, so why are all the instructions still saying to use it?  Is one of the other software offerings, like dvd Cfreator for Mac, ok to use for this?  What's the best one?

    Please clarify what you mean by "you can't get it to open". Is iDVD on your system or not? If this is a new iMac, iDVD is no longer bundled with new Macs, so the application just isn't there and hence of course can't be opened. You can still purchase it as part of the retail iLife '11 box, though, if you want it, and it would be less expensive than DVD Creator (which I have no experience with), even though you'll get some redundant applications.
    Regards.

  • I update my OS to Mount Lion and all my .docs ( microsoft office for mac) can't be read or open. Any advice on to what app should I get so I can open or transfer to so I can open em?

    I update my OS to Mount Lion and all my .docs ( microsoft office for mac) can't be read or open. Any advice on to what app should I get so I can open or transfer to so I can open em?

    What program did you use prior to the updade? Did you updrde that program when you updaded the OS?

  • Recently purchased a new imac and thought my old iPhoto library transferred over. It wasn't. And I can't get iPhoto to open on my old mac ("can't open your current version of iPhoto using this version of iPhoto. You have made changes to your photo lib ...

    I purchased a new imac (4G, OS X 10.6.8) in Feb 2011 and thought my old iPhoto library transferred over. It wasn't. And I can't get iPhoto to open on my old mac. It says, "can't open your current version of iPhoto using this version of iPhoto. You have made changes to your photo library using a newer version of iPhoto. Please quit and use the latest version of iPhoto". I don't think my old mac will support the newer version of iPhoto so I feel like I'm stuck (this is why I got a new mac -- cheaper than upgrading all my software, etc). Help! I really need to get to my old photos, and no, they are not backed up anywhere. Thanks.

    You have two options:
    Run the Library on a machine that has the same version as the machine that was stolen.
    or
    Recover the files from this library and start over from scratch.
    To recover the files:
    Go to your Pictures Folder (or whereever you have the back up) and find the iPhoto Library there. Right (or Control-) Click on the icon and select 'Show Package Contents'. A finder window will open with the Library exposed.
    Your originals are in the Masters folder.
    Note this will only recover your photos as imported from you camera.
    Regards
    TD

  • HT6114 After the latest OS X update (10.9.2) I cannot open Outlook (Office for MAC 2011). Outlook flashes briefly then nothing happens. How can I get Outlook to open?

    After the latest OS X update (10.9.2) I cannot open Outlook (Office for MAC 2011).  Outlook flashes briefly but does not open.  How can I get Outlook to open?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Step 1
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Enter the name of the crashed application or process in the Filter text field. Select the messages from the time of the last crash, if any. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.
    Step 2
    In the Console window, look under User Diagnostic Reports (not "Diagnostic and Usage Messages") for crash reports related to the crashed process. The report name starts with the name of the process, and ends with ".crash". Select the most recent report and post the entire contents — again, the text, not a screenshot. In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.) Please don’t post other kinds of diagnostic report — they're very long and not helpful.

  • I can't get itunes to open and i have restarted, my ipad is currently connected, please help!

    I can't get itunes to open and I have restarted my mac, my ipad is currently connected

    same problem - its open but no window is opened. All the options are greyed out.
    HELP APPLE!

  • I am running OS X 10.5.8 and don't see an iCloud icon in my system preferences.  I do see a Mobileme icon but I would like to have all my mac devices on iCloud.  How can I get iCloud on my desktop?

    I am running OS X 10.5.8 and don't see an iCloud icon in my system preferences.  I do see a Mobileme icon but I would like to have all my mac devices on iCloud.  How can I get iCloud on my desktop?

    iCloud requires 10.7.2 or later. See the following about how to upgrade:
    Upgrade Paths to Snow Leopard, Lion, and/or Mountain Lion
    You can upgrade to Mountain Lion from Lion or directly from Snow Leopard. Mountain Lion can be downloaded from the Mac App Store for $19.99. To access the App Store you must have Snow Leopard 10.6.6 or later installed.
    Upgrading to Snow Leopard
    You can purchase Snow Leopard through the Apple Store: Mac OS X 10.6 Snow Leopard - Apple Store (U.S.). The price is $19.99 plus tax. You will be sent physical media by mail after placing your order.
    After you install Snow Leopard you will have to download and install the Mac OS X 10.6.8 Update Combo v1.1 to update Snow Leopard to 10.6.8 and give you access to the App Store. Access to the App Store enables you to download Mountain Lion if your computer meets the requirements.
         Snow Leopard General Requirements
           1. Mac computer with an Intel processor
           2. 1GB of memory
           3. 5GB of available disk space
           4. DVD drive for installation
           5. Some features require a compatible Internet service provider;
               fees may apply.
           6. Some features require Apple’s iCloud services; fees and
               terms apply.
    Upgrading to Lion
    If your computer does not meet the requirements to install Mountain Lion, it may still meet the requirements to install Lion.
    You can purchase Lion by contacting Customer Service: Contacting Apple for support and service - this includes international calling numbers. The cost is $19.99 (as it was before) plus tax.  It's a download. You will get an email containing a redemption code that you then use at the Mac App Store to download Lion. Save a copy of that installer to your Downloads folder because the installer deletes itself at the end of the installation.
         Lion System Requirements
           1. Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7,
               or Xeon processor
           2. 2GB of memory
           3. OS X v10.6.6 or later (v10.6.8 recommended)
           4. 7GB of available space
           5. Some features require an Apple ID; terms apply.
    Upgrading to Mountain Lion
    To upgrade to Mountain Lion you must have Snow Leopard 10.6.8 or Lion installed. Purchase and download Mountain Lion from the App Store. Sign in using your Apple ID. Mountain Lion is $19.99 plus tax. The file is quite large, over 4 GBs, so allow some time to download. It would be preferable to use Ethernet because it is nearly four times faster than wireless.
         OS X Mountain Lion - System Requirements
           Macs that can be upgraded to OS X Mountain Lion
             1. iMac (Mid 2007 or newer) - Model Identifier 7,1 or later
             2. MacBook (Late 2008 Aluminum, or Early 2009 or newer) - Model Identifier 5,1 or later
             3. MacBook Pro (Mid/Late 2007 or newer) - Model Identifier 3,1 or later
             4. MacBook Air (Late 2008 or newer) - Model Identifier 2,1 or later
             5. Mac mini (Early 2009 or newer) - Model Identifier 3,1 or later
             6. Mac Pro (Early 2008 or newer) - Model Identifier 3,1 or later
             7. Xserve (Early 2009) - Model Identifier 3,1 or later
    To find the model identifier open System Profiler in the Utilities folder. It's displayed in the panel on the right.
    Are my applications compatible?
             See App Compatibility Table - RoaringApps.
         For a complete How-To introduction from Apple see Upgrade to OS X Mountain Lion.

  • Can't get duplex print option for pdf files using  Adobe ReaderXI 11.0.04, Mac 10.8.5 with HP8600

    I get two-sided option for normal printing, but
    I can't get duplex print option for pdf files using  Adobe ReaderXI 11.0.04, Mac 10.8.5 with HP Officejet Pro 8600.  HP says it's an Adobe problem. I'm stuck.
    Thanks in advance.
    VO

    It depends where the pdf is located. If in the Finder or in an attachment to
    an email in Entourage, the message is ³You can¹t open the application
    ³Acrobat Reader 5.0² because PowerPC applications are no longer supported².
    If an attachment in an email that has come via Safari, the message is
    ³Safari can¹t open the file because no available applications can open it².
    In each case the menu bar is Finder or Entourage or Safari as the case may
    be.

  • I am receiving an error message "Error: 150:30" after having my computer serviced. Repair shop completely stripped down my machine and reloaded Operating system, Yosemite 10.10.1. tried to download a Licensing update, but can't get that to open.????

    Adobe Photoshop CS4
    I am receiving an error message "Error: 150:30" after having my computer serviced.
    Repair shop completely stripped down my machine and reloaded Operating system, Yosemite 10.10.1.
    I tried to download a Licensing update, but can't get that to open.????
    My machine had originally been a clone of another Mac. Not it looks like a brand new computer.
    Possibly there is something in system preferences to change? I turned off Firewall and allow downloads from all parties.
    Thank You for you help!
    joe

    150:30 means the licensing failed. Photoshop can't be moved like other programs from another drive or from backup.
    I would suggest a reinstall to fix it. Anytime you move Photoshop from from drive to another, it breaks licensing. A install is the quickest way. to fix it.
    When you are done with the install, apply all CS4 updates.  Product updates
    Gene
    (Remember to mark the answer that solved your issue by clicking on “correct”. This indicates the question is answered and credits those who took time to help you or followup if there are further questions)

  • I installed Lion OS, after restart it gives the startup screen with my user id but no window for password entry, no matter what I do I can't get past the opening screen.

    I installed Lion OS, after restart it gives the startup screen with my user id but no window for password entry, no matter what I do I can't get past the opening screen.

    MacBook Pro
    MacBook Pro Apple Support
    Apple Support Lion
    Lion Mac OS X Communities

  • Getting applescript to open

    I don't know any code but, I have been wanting to get applescript to open various applicacations when I turn on/reboot my computer.

    '... I have been wanting to get applescript to open various applicacations when I turn on/reboot my computer.'
    01. Copy the code below ...
    set application_List to {"iCal.app", "Stickies.app"} -- List of applications.
    set up_Time to do shell script "uptime | awk {'print $3'}" -- Obtain uptime minutes, or hours and minutes, values.
    -- The '5' below is for '5 minutes', enough time for a Macintosh to boot. Much less time than the Mac is typically ON.
    if ((not (up_Time contains ":")) and (up_Time < 5)) then -- If on for less than '5' minutes - launch desired applications.
    repeat with i in application_List -- Cycle through the list of applications, to launch.
    tell application i to launch -- Or use 'activate', in place of 'launch'.
    end repeat
    end if
    ..., and paste it into 'Script Editor' ('/Applications/AppleScript/').
    02. Save the code, via the 'File, Save' menu item, selecting 'Application' from the 'File Format:' popup menu. You have just created an AppleScript applet.
    03. Launch (open, run) 'System Preferences', and click on the 'Accounts' utility.
    04. Click on 'Accounts' 'LogIn items' tab.
    05. Drag the AppleScript applet onto the 'Accounts' window's list.
    06. Click on the 'System Preferences' window's (now retitled 'Accounts') 'red' jelly bean crayola crayon 'close' button.
    Only when the Mac is rebooted, or turned OFF and later turned ON, will the above applet execute, and the listed applications launched.
    If you were to log out and log back in - into the same account, the applet will be executed; but, the listed applications will not be launched..
      Mac OS X (10.4.2)  

  • I have been using pages for months and now I can not get it to open any templet or previous document to open?

    I have been using pages for months and now I can not get it to open any templet or previous document to open?

    A little more information would be helpful.
    What version of Pages are you using? The latest is 4.1 with the update released on July 20. In Snow Leopard 10.6.8 you need at least Pages 4.0.5. If you're not running the latest versions & Software Update says your software is up to date, make sure the applications are where the installer initially put them. The updaters are very picky. If the location is not where the updater is programmed to look or if the folder doesn't have the name the updater looks for, it will not work. The applications cannot be renamed or moved. They must be in the iWork '09 folder in Applications. That iWork folder must be named iWork '09. If it doesn't have the '09 Software Update won't find them & the updaters won't work.
    If you are running at least Pages 4.0.5 & haven't made any other changes to your Mac since Pages was last working correctly, the likely culprit is corrupt preferences. Go to HD > Users > (your account) > Library > Preferences & delete the com.apple.iwork.pages.plst & restart Pages.

  • I am trying to use powerpoint but when I open a document I want to work on it does not open on my desktop. It appears as open on mission control but it disappears offscreen. How can I get it to open where i need it and can work on it?

    I am trying to use powerpoint but when I open a document I want to work on it does not open on my desktop. It appears as open on mission control but it disappears offscreen. How can I get it to open where i need it and can work on it?

    It's almost certainly too late.
    The time to create a backup is before a catastrophe.  After a catastrophe, it's too late.

Maybe you are looking for

  • SpeedStep Problem T7300

    Hello together, I have a two years old ThinkPad X61 with an Intel Core2 T7300 Processor which has a maximal Frequency of 2GHz. My ThinkVantage Power Manager has following settings: ·         on battery the maximal Frequency is set to "low" which is a

  • Can iPad mini 2 show flash photo galleries (Lightroom)?

    Adobe Lightroom can create flash galleries with advanced navigation and automatic slideshows. HTML doesn't support that. I'm afraid any apple product won't show those galleries in safari. Or am I wrong? How can I create a slideshow with captions for

  • Epub image problem

    Hi, I am trying to create an ibook in Pages. My document has quite a few images which show up in the pages document and also when I export to PDF, However when I export to Epub some of my images disappear. I have checked that they are all inline and

  • Yosemite slow on MBP late 2013, did several clean installs

    I've got a MBP late 2013 which I upgraded from Mavericks to OS Yosemite. When I did it, the impact was bad: all applications and OS is slow, to write an email or to  open simple files have to wait more than 30 secs. i have read all the topics here, h

  • Plugin reference library to ms crm 2011/2013/2015.

    Plugin reference library to ms crm 2011/2013/2015. Eg:like for jscript http://garethtuckercrm.com/2011/03/16/jscript-reference-for-microsoft-dynamics-crm-2011/ Please help me