Re: QuarkXPress text export (save) limited to 7 characters
Re: QuarkXPress text export (save) limited to 7 characters
- Subject: Re: QuarkXPress text export (save) limited to 7 characters
- From: Michael Turner <email@hidden>
- Date: Fri, 16 Mar 2001 11:19:19 -0500
Hans,
This works great.
save story 1 of current box in (theFilename & "Axxxxxxx")
-- 'xxx' to ensure 'too long' filename.
I checked it against my previous output (with 'diff'). Output is identical.
Then, in a fit of confusion, I tried the 'export' function again, with the
long filename this time. It immediately locked my machine. It's trashed at
this point. So much for 'ScriptMasterXT' as a learning tool.
Thanks again.
/Michael
>
From: Hans Haesler <email@hidden>
>
Subject: Re: QuarkXPress text export (save) limited to 7 characters
>
>
BUT, the truth is: if you want ASCII files then you don't need to care
>
about the check box. Condition is that you don't use 'as "TEXT"':
>
---
>
set fileName to (path to startup disk as string) & "test"
>
tell document 1 of application "QuarkXPress 4.11"
>
save story 1 of current box in (fileName & ".txt")
>
end tell
>
---
>
The result is an ASCII file, regardless of the status of the check box.
>
>
If you need tagged files, then you must make sure that the box is
>
enabled (by script) and you must use 'as "TEXT"':
>
---
>
set fileName to (path to startup disk as string) & "test"
>
tell application "QuarkXPress 4.11"
>
set import styles to true
>
tell document 1
>
save story 1 of current box in (fileName & ".xtg") as "TEXT"
>
end tell
>
end tell
>
---