Re: InDesign Scripting
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.