Re: InDesign scripting conundrum No 1
Re: InDesign scripting conundrum No 1
- Subject: Re: InDesign scripting conundrum No 1
- From: Shane Stanley <email@hidden>
- Date: Sun, 14 Apr 2002 20:04:05 +1000
On 13/4/02 10:11 PM +1000, David Lloyd, email@hidden, wrote:
>
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
Instead of 'font:"Verdana' that should be 'applied font:"Verdana", but
otherwise it works fine here.
>
>
-----
>
>
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
>
>
------
Works fine here.
>
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...
Try deleting all your ID 2 preferences ("Macintosh HD:Users:<your
name>:Library:Preferences:Adobe InDesign:Version 2.0:")
--
Shane Stanley, email@hidden
_______________________________________________
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.