Re: Applescript, VectorScript & VectorWorks
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