Re: Snow Leopard/QuarkXpress Issue
Re: Snow Leopard/QuarkXpress Issue
- Subject: Re: Snow Leopard/QuarkXpress Issue
- From: Bruce Robertson <email@hidden>
- Date: Sat, 22 Sep 2012 15:37:26 -0700
Did you ever find a solution to this problem?
I am trying to help somebody who is experiencing a similar problem.
Bruce Robertson
On Feb 9, 2011, at 4:13 PM, Jeff Walters wrote:
> I am having an issue with AppleScripts that I am migrating from 105 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