• 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: more news from the front
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: more news from the front


  • Subject: Re: more news from the front
  • From: graphics <email@hidden>
  • Date: Tue, 17 Dec 2002 14:29:01 -0500

William,

Thanks for slugging that out - I will be needing something like that in the
near future!

Congrats, best wishes and happy holidays y'all!
--
Curtis J Siters
Subway Stamp Shop
2121 Beale Avenue, Altoona, PA 166001
814.946.1000
--

> From: "Wallace, William" <email@hidden>
> Date: Tue, 17 Dec 2002 13:03:48 -0600
> To: "'email@hidden'"<email@hidden>
> Subject: RE: more news from the front
>
> Actually the real culprit turned out to be something else. This works fine:
>
> tell application "QuarkXPress(tm) 4.11"
> activate
> set sourceDoc to choose file with prompt "Select a file to
> PostScript..."
> open sourceDoc use doc prefs yes remap fonts no do auto picture
> import no
> tell document 1
> set docName to name
> print PostScript file ("Startup:Desktop Folder:" & docName &
> ".ps")
> end tell
> close document 1 saving no
> end tell
>
> This, however, does not:
>
> tell application "QuarkXPress(tm) 4.11"
> activate
> set sourceDoc to choose file with prompt "Select a file to
> PostScript..."
> open sourceDoc use doc prefs yes remap fonts no do auto picture
> import no
> tell document 1
> set docName to name
> set vertical measure to inches --THIS IS THE CULPRIT
> print PostScript file ("Startup:Desktop Folder:" & docName &
> ".ps")
> end tell
> close document 1 saving no
> end tell
>
> No matter what I try (putting extra commands in before the close command,
> breaking the code up into separate blocks and wrapping them with ignoring...
> statements, etc.) it will always crash Quark. Even if I remove the close
> command altogether and then try to close the document manually after the
> script has finished executing.
>
> ...very annoying
>
> -whw
>
>
>> Subject: RE: Can't close doc in Quark
>> Date: Tue, 17 Dec 2002 11:21:45 -0600
>>
>> Okay, didn't take long for it to break again (in fact, the one time
> it
>> worked was some kind of fluke, or I did something different without
>> realizing it). Anyway, I've found that if I move the close command
> to a
>> separate tell block and wrap that second tell block in an ignoring
>> application responses block, it seems to work fine. Phew! Thanks
> for
>> playing. You've been a great crowd. I'll be here all week. Don't
> forget to
>> tip your bartender and waitresses.
>>
>> ;-}
>>
>> -whw
> _______________________________________________
> applescript-users mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/applescript-users
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >RE: more news from the front (From: "Wallace, William" <email@hidden>)

  • Prev by Date: [Q] Is mac PowerPoint appleScriptable?
  • Next by Date: Re: a little bit offlist: charakter tables
  • Previous by thread: RE: more news from the front
  • Next by thread: [Q] Is mac PowerPoint appleScriptable?
  • Index(es):
    • Date
    • Thread