• 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: InDesign Scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: InDesign Scripting


  • Subject: Re: InDesign Scripting
  • From: David Lloyd <email@hidden>
  • Date: Thu, 11 Apr 2002 22:42:10 +1000

Well kind thanks to those who reported that this error did *not* occur on
their systems... the problem lies within my machine...

I tried AppleScript 1.8.1 (I had been using 1.8.2b3) made my system as clean
as possible, ditched the InDesign prefs, but to no avail. So...

While this would crash me:

tell application "InDesign 2.0"
tell document 1
set theRectangle1 to {make rectangle at end with properties {visible
bounds:{10, 10, 60, 60}, fill color:swatch "Box Color"}}
end tell
end tell

This variant in fact made the box correctly, but did not put in the color:
(added 'tell page')

tell application "InDesign 2.0"
tell document 1
tell page 1
set theRectangle1 to {make rectangle at end with properties {visible
bounds:{10, 10, 60, 60}, fill color:swatch "Box Color"}}
end tell
end tell
end

and this did the trick:
(with 'tell spread')

tell application "InDesign 2.0"
tell document 1
tell spread 1
set theRectangle1 to {make rectangle at end with properties {visible
bounds:{10, 10, 60, 60}, fill color:swatch "Box Color"}}
end tell
end tell

So this works now, but I find this a bit inconsistent. Can anyone (Shirley,
Peter?) comment on this??

Cheers,

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.

  • Prev by Date: Re: Finder Version Wrong in OS X
  • Next by Date: Re: batch import to FMP
  • Previous by thread: Re: InDesign Scripting
  • Next by thread: Re: InDesign Scripting
  • Index(es):
    • Date
    • Thread