InDesign scripting conundrum No 2
InDesign scripting conundrum No 2
- Subject: InDesign scripting conundrum No 2
- From: David Lloyd <email@hidden>
- Date: Sat, 13 Apr 2002 22:11:59 +1000
Here is another InDesign/ OS X snippet that's holding me up:
tell application "InDesign 2.0"
tell document 1
set theText to name of
(info for (path to scripting additions folder))
set contents of text frame 1 to theText
end tell
end tell
-----
This just doesn't work on OS X, it leaves the text frame empty.
But I if change the line to:
set contents of text frame 1 to theText as Unicode Text
...it works, but...
...it also places visible 'square' characters at random after the text.
These characters prove to be ascii number 13s, (or return characters).
The oddity is that it appends 2, 3, 4, 5 or none of these characters after
the text randomly, sometimes none at all.
Has anyone else noticed this? I don't really want to set the text frame to
Unicode, it's just that it's the only way I can get anything to happen.
Once again, it's a OS X issue, it's OK on OS 9.2.2, where the Unicode bit
isn't required.
Best regards,
David Lloyd
---------------------------------
email: email@hidden
web:
http://www.kanzu.com
---------------------------------
_______________________________________________
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.