InDesign scripting conundrum No 1
InDesign scripting conundrum No 1
- Subject: InDesign scripting conundrum No 1
- From: David Lloyd <email@hidden>
- Date: Sat, 13 Apr 2002 22:11:42 +1000
Thanks to those who tried my previous snippet and verified that it indeed
worked on their systems. However, I'm hanged if I know why it crashes my
InDesign application every time.
These two snippets work fine for me on OS 9.2.2, but crash-quits InDesign on
OS X 1.1.3 using AppleScript 1.8.1 (and 1.8.2b3):
tell application "InDesign 2.0"
tell document 1
set theStyle to {make paragraph style with properties
{name:"NewStyle", font:"Verdana"}}
set applied paragraph style of paragraph 1 of text frame 1
to paragraph style "NewStyle"
end tell
end tell
-----
tell application "InDesign 2.0"
tell document 1
set theColor to {make color with properties
{name:"NewColor", color value:{20, 20, 60, 0}}}
set fill color of rectangle 1 to swatch "NewColor"
end tell
end tell
------
The fact that it works on OS 9.2.2 suggests that the script is fine.. (?)
If anyone could offer any clues to why this is not working for me I would be
so grateful...
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.