🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #20755

Selection Indicator on the blink

#20755
From: Dave Saunders
Date: Wed, 05 Jun 2002 11:54
15 lines
1738 bytes
I've used a combination of REALbasic and AppleScript to create a palette for ID 2 that was working to my complete satisfaction but now is on the blink.  

Here's how it looks when the current selection is an insertion point. In this case, it works properly: 

 

And here's the script that gets the class of the selection that I'm displaying (first 10 characters thereof) at the bottom of the palette: 

on run  with timeout of 1 second   try    tell application "InDesign 2.0.1"     set theClass to class of selection as list     if (count of theClass) > 1 then      return "multiple"     else      try       return characters 1 through 10 of (theClass as text) as string      on error       return theClass as text      end try     end if    end tell   on error    return "none"   end try  end timeout  return "Timed Out" end run 

This script runs on a timer that's set to repeat every 1250 milliseconds (hence the 1 second time-out). 

I'll show the problem in the first message. 

Dave
Technical Details
Message-ID: <ef8eeff.-1@WebX.aaQKaf7vad4>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!newsfeed.icl.net!diablo.netcom.net.uk!netcom.net.uk!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,f0482902987652da,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-06-05 05:32:11 PST
From: "Dave Saunders" <daves@pdsassoc.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!newsfeed.icl.net!diablo.netcom.net.uk!netcom.net.uk!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Selection Indicator on the blink
Message-ID: <ef8eeff.-1@WebX.aaQKaf7vad4>
Date: Wed, 5 Jun 2002 04:54:06 -0700
Lines: 40
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit