• 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: Applescript, VectorScript & VectorWorks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applescript, VectorScript & VectorWorks


  • Subject: Re: Applescript, VectorScript & VectorWorks
  • From: Dan Belfiori <email@hidden>
  • Date: Wed, 27 Oct 2004 02:27:32 -0700


I'm betting that AppleScript is sending out unicode and VectorScript doesn't understand it.wrote:

You might try using AppleScript to write an 8 bit normal ASCII text file to a temporary file and see if you can execute that from Vectorworks' Resources palette. At least you would be able to examine the AppleScript output with a text editor.

That was the problem, I ended up writing my text to a temp file and read it back again... then sent it to "Vectorworks". The text I was generating was developed from a list and a repeat loop which added some literal text before and after the list items to write pascal lines.
My list of printer names was generated by:
tell application "Printer Setup Utility" to set theprinters to name of every printer
The names in the list are unicode text
I tried coercing the list items and the developed text to class "string"... but in the end writing it to a file and reading it back again was the only technique that "cleaned" the text enough for VectorWorks to process it without error.
If I wrote my own list by: set printerlist to {"Printer1","Printer2"}... the VW error did not occur.
db


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Applescript, VectorScript & VectorWorks (From: Dan Belfiori <email@hidden>)
 >Re: Applescript, VectorScript & VectorWorks (From: Doug McNutt <email@hidden>)

  • Prev by Date: Re: applescript's text item delimiters
  • Next by Date: Re: Native AS or grep via do shell script?
  • Previous by thread: Re: Applescript, VectorScript & VectorWorks
  • Next by thread: Adobe Photoshop CS - vulnerability or feature?
  • Index(es):
    • Date
    • Thread