• 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: D'oh-plicate terminology
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: D'oh-plicate terminology


  • Subject: Re: D'oh-plicate terminology
  • From: Shane Stanley <email@hidden>
  • Date: Wed, 19 Nov 2003 16:54:59 +1100

On Nov 19, 2003, at 11:29 AM, Matt Deatherage wrote:

InDesign CS requires that the name of "applied paragraph style" in the find attributes match case-sensitively. InDesign 2.0.2 did not.

And yet it seems case sensitive about it elsewhere:

tell application "InDesign 2.0.2"
make document
tell document 1
make paragraph style with properties {name:"Blah"}
exists paragraph style "blah" --> false
exists paragraph style "Blah"
make text frame with properties {contents:"x" & return & "y"}
set applied paragraph style of paragraph 1 of parent story of text frame 1 to paragraph style "Blah"
search parent story of text frame 1 with find attributes {applied paragraph style:paragraph style "Blah"}
search parent story of text frame 1 with find attributes {applied paragraph style:paragraph style "blah"} with case sensitive
end tell
end tell

Odd.

I happened to get two scripts that were all but identical up at the same time, and when one worked and the other didn't, I was able to track it down. I gotta say, it would have taken me _weeks_ to get from "doesn't understand the search message" to "I can't find a style by that name."

After that, it was just a matter of updating for normal kinds of application revision changes

FWIW, there are a lot of them. Text handling has changed a lot, in particular. More like native AppleScript with ranges.

--
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.

References: 
 >Re: D'oh-plicate terminology (From: Matt Deatherage <email@hidden>)

  • Prev by Date: Re: Mail: routing and re-routing - difference?
  • Next by Date: RE: Mail: routing and re-routing - difference?
  • Previous by thread: Re: D'oh-plicate terminology
  • Next by thread: Re: D'oh-plicate terminology
  • Index(es):
    • Date
    • Thread