Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7524957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T03:12:10+00:00 2026-05-30T03:12:10+00:00

tell application Adobe Photoshop CS5.1 set myFile to (choose file) as string open file

  • 0
tell application "Adobe Photoshop CS5.1"
set myFile to (choose file) as string
open file myFile
end tell

This results in 2 separate dialogs opening asking me what file to open…. It doesn’t matter what I select first, it asks a second time and opens the second.

What I want to open is a PDF, so I really want:

tell application "Adobe Photoshop CS5.1"
set myFile to (choose file) as string
open file myFile as PDF with options {class:PDF open options, mode:CMYK, resolution:300, use antialias:true, page:1} showing dialogs never
end tell

Result:

Error: General Photoshop error occurred. This functionality may not be available in this version of Photoshop

All right a more direct approach:

tell application "Adobe Photoshop CS5.1"
set myFilePath to alias "other: PREPRESS SAVE:GAMES:3Sudoku:20120213pzsud-v:sudoku 0213.pdf"
with timeout of 300 seconds
        open myFilePath as PDF with options {class:PDF open options, mode:CMYK, resolution:300, use antialias:true, page:1} 
end timeout
end tell

The file exists or the setting of the alias would fail. So what do I get?

 "Error: -43. Adobe Photoshop CS5.1 got an error: File some object wasn’t found."

I had asked over on the Adobe forums, with no response. The full code I’m really trying to use is there if you’re interested. I reduced it to basics to figure out what the problem is.

Is there a setting somewhere that I am missing? I’m not sure what is wrong, the example out of the

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T03:12:11+00:00Added an answer on May 30, 2026 at 3:12 am

    There are horrible issues with The Photoshop 5 dictionary. One idea is to try and run it in 32-bit mode which ‘solves’ a lot of issues. Please digest further in http://forums.adobe.com/message/2822670#2822670?tstart=0#2822670

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have tried this but it doesn't work: tell application Preview set myfile to
I am successfully opening 1 random file, like this: tell application Finder open some
I am trying to do the following tell application Finder open location smb://user:password@filesystem/folder end
If I have an applescript snippet such as this tell application Finder set thePath
I have such an AppleScript: tell application Firefox activate set the bounds of the
What's the best way to tell my application that the file has been modified
Can anyone please tell me why compiling a C# application with a .cs file
I am AppleScripting Adobe Illustrator CS3. Here is (part of) my code: tell application
I'm trying to growl from Ruby/Appscript, based on this sample Applescript code: tell application
I'm not sure, but this: -(void)quitFinder { NSAppleScript *restartFinder = [[NSAppleScript alloc] initWithSource:@tell application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.