• 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: Q U A R K * printing postscript file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Q U A R K * printing postscript file


  • Subject: Re: Q U A R K * printing postscript file
  • From: JJ <email@hidden>
  • Date: Mon, 26 Mar 2001 09:48:57 +0200

> at 3/23/01, 2:28 PM +0100, they whom i call JJ wrote:
>> This script above functions sometimes or return an error -48
>> What is wrong?
>
> -48 is "duplicate file name". possibly it's when you've
> previously made a file with that name, or the name is long
> enough that ".ps" doesn't fit, so it matches the document
> name?
>
> steve harley email@hidden
>
>
At first, thanks to everybody.
I'm sure my file names aren't duplicated and they are always 8-12 characters
long. I searched Quark archives and always, like Kim Kohen says, there is
the some problem with .ps files & error -48 (or -50, "Error in user
parameter list"). I made some changes into my script and it works momentary.

Basically, it was:

property my_destination_folder : ((path to desktop folder) & "Postscripts:")
as string

And now it is:

property my_destination_folder : ""

tell app "Finder"
set my_destination_folder to (choose folder) as string
(...)
tell app "QuarkXPress"
(...)
set destFile to my_destination_folder & (doc_name as string) & ".ps"
print document 1 PostScript file destFile

It seems to be useful (momentary) to define 'my_destination_folder' every
time it runs.

JJ


References: 
 >Re: Q U A R K * printing postscript file (From: garbanzito <email@hidden>)

  • Prev by Date: Partial recursion strangeness
  • Next by Date: Re: Command Line in OSX
  • Previous by thread: Re: Q U A R K * printing postscript file
  • Next by thread: Re: Q U A R K ? printing postscript file
  • Index(es):
    • Date
    • Thread