• 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
Re: Snow Leopard/QuarkXpress Issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Snow Leopard/QuarkXpress Issue


  • Subject: Re: Snow Leopard/QuarkXpress Issue
  • From: Jan Bultereys <email@hidden>
  • Date: Thu, 10 Feb 2011 10:47:05 +0100
  • Thread-topic: Snow Leopard/QuarkXpress Issue

Title: Re: Snow Leopard/QuarkXpress Issue
Hi Jeff,

This code should do the trick.

repeat with oneFile in fileList
   
tell application "QuarkXPress"
        
activate
       set oneFile to oneFile as alias
       open oneFile use doc prefs yes remap fonts no do auto picture import no
       
close front document saving no
   
end tell
end
repeat

Have a nice day
Jan



On 10/02/11 01:13, "Jeff Walters" <email@hidden> wrote:

I am having an issue with AppleScripts that I am migrating from 10.5 to 10.6. The scripts work fine on 10.5. But under Snow Leopard, the code is causing an error. The issue is occurring in Quark 8.1.6.2.

The following script will display the error "QuarkXPress got an error: Can't make some data into the expected type." on the open file line.

tell application "QuarkXPress"
    activate
    
    set fileList to choose file with prompt "Choose the file(s) to process. [Cmd or Shift + click to choose more than one file]" of type {"XPRJ"} with multiple selections allowed without invisibles
    
    set fileList to fileList as list
    set fileList to my sortList(fileList)
end tell


repeat with oneFile in fileList
    tell application "QuarkXPress"
        activate
       
        open file oneFile use doc prefs yes remap fonts no do auto picture import no
        
        close front document saving no
        
    end tell
end repeat


on sortList(the_list)
    set old_delims to AppleScript's text item delimiters
    set AppleScript's text item delimiters to {ASCII character 10} -- always a linefeed
    set list_string to (the_list as string)
    set new_string to do shell script "echo " & quoted form of list_string & " | sort -f"
    set new_list to (paragraphs of new_string)
    set AppleScript's text item delimiters to old_delims
    return new_list
end sortList


I have tried resaving the script on a machine running 10.6 with both a Save As and a copy and paste to a blank document and still get the same results.

Oddly, some of the 10.6 machines within my department are able to run this script but not consistently. There is a mix of 10.6.4 and 10.6.6 installed at the moment. But I don't see any consistency as to which machines are able to run this script without error and which ones are.

Any suggestions? Anyone else experiencing this sort of issue?


Jeff Walters
Pearson Assessments
Software Developer
Electronic Solutions Specialist

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

Met vriendelijke groeten / Cordialement / Kind regards,

Jan Bultereys
Asst Manager Cat. Prod. Systems Creative Services Benelux
Office Depot
Schoonmansveld, 28
2870 Puurs
Belgium
T +32 (0)3 860 55 02
F +32 (0)3 860 55 49
M +32 (0)474 52 98 57
E-mail: email@hidden
Delivering Winning Solutions that Inspire Worklife


This email and any attached files are confidential and may be legally
privileged.  If you are not the intended recipient, any disclosure,
reproduction, copying, distribution, or other dissemination or use of this
communication is strictly prohibited.  If you have received this
transmission in error please notify the sender immediately and then delete
this email.Email transmission cannot be guaranteed to be secure or error
free as information could be intercepted, corrupted, lost, destroyed, arrive
late or incomplete, or contain viruses.  The sender therefore is in no way
liable for any errors or omissions in the content of this message, which may
arise as a result of email transmission.  If verification is required,
please request a hard copy.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Snow Leopard/QuarkXpress Issue (From: Jeff Walters <email@hidden>)

  • Prev by Date: Re: Append QT movies without adding tracks
  • Next by Date: Re: SpamCop script which worked in Tiger suddenly dropping some attachments in Leopard
  • Previous by thread: Re: Snow Leopard/QuarkXpress Issue
  • Next by thread: Applescript (or Automator...or shell scrip...) to start and stop screen recording
  • Index(es):
    • Date
    • Thread