• 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
InDesign scripting conundrum No 2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: InDesign scripting conundrum No 2
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Path to ~/
  • Next by Date: InDesign scripting conundrum No 1
  • Previous by thread: 32k limit on Handle CGI Request bites!!!
  • Next by thread: Re: InDesign scripting conundrum No 2
  • Index(es):
    • Date
    • Thread