• 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: Displaying Dialog with text only
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Displaying Dialog with text only


  • Subject: Re: Displaying Dialog with text only
  • From: JoePostscript <email@hidden>
  • Date: Thu, 28 Feb 2002 15:34:19 -0500

One of my favorite tricks that I thought of was to call a get info
of the script itself and display all kinds of dynamic text feedback
into the comments of the script's info comments.

This is very cool in showing the progress of a script without using
any osax, it is very quick and doesn't slow down t your script much
at all. Here's a crude quick example to get the idea from.
--
Joe Postscript...

--BEGIN SCRIPT

global SR_MyAppPath
global MyFeedBackTEXT

tell application "Finder"
set SR_MyAppPath to path to me as string -- PATH OF THE SCRIPT
open information window of alias SR_MyAppPath
repeat 10 times
-- DO YOUR THING
delay 2 -- JUST SO YOU CAN SEE HOW THIS WORKS
-- Set the Message AND call the subroutine
set MyFeedBackTEXT to "
Attention, I'm Still Doing My Thing, Leave Me Alone Please"
-- Message can vary to represent current status of process
my SR_MyFeedBack()
end repeat
close information window of alias SR_MyAppPath
end tell

on SR_MyFeedBack()
tell application "Finder"
set comment of alias SR_MyAppPath to "||||||||||||||||||
||||||||||||||||||||" -- Gets Attention By A Little Flashing Action!
set comment of alias SR_MyAppPath to MyFeedBackTEXT
end tell
end SR_MyFeedBack

-- END SCRIPT
_______________________________________________
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: Displaying Dialog with text only (From: JJ <email@hidden>)

  • Prev by Date: Re: Extracting from text [Lecture]
  • Next by Date: Re: URL Access Scripting?
  • Previous by thread: Re: Displaying Dialog with text only
  • Next by thread: Re: Displaying Dialog with text only
  • Index(es):
    • Date
    • Thread