Quantcast
Channel: Objective Development Forums
Viewing all articles
Browse latest Browse all 4524

Re: Timer script: Display delayed messages (without hacks)

$
0
0
Hi, I'm afraid all the versions of this script on this thread that omit the time from the large text display now place '+' signs between each letter in the large text display.

They used to work fine, so I wonder what's going wrong. Anyone have any idea of a fix?

ptujec wrote:There are different versions here so I'm not sure which which one you where using.

I use a slightly modified version of Justins script. The only thing I added is the sound parameter.

-- http://justinblanton.com/2010/02/launchbar-timer
-- Expamle: "1=1s, 1m, 1h ... 1.5 ..."
-- just added a sound to it (@Ptujec)

on handle_string(msg)
   
   set duration to last word of msg
   set mLength to (count characters of msg)
   set dLength to ((count characters of duration) + 1)
   set reminder to (characters 1 thru (mLength - dLength) of msg) as string
   
   tell application "LaunchBar"
      display in large type reminder after delay duration with sound "Glass"
      delay
   end tell
   
end handle_string

Viewing all articles
Browse latest Browse all 4524

Trending Articles