simple progress indicator applescript
simple progress indicator applescript
- Subject: simple progress indicator applescript
- From: rodney tamblyn <email@hidden>
- Date: Mon, 11 Jul 2005 11:14:36 +1200
Here is a simple way to indicate progress of an external copying operation. This takes advantage of the standard additions applescript library which is installed on all Macs. You can call this within a preflight script by doing:
open "$1/Contents/Resources/installing_CD_files.app"
on run display dialog "This operation may take up to 10 min depending on size of files and speed of CD-ROM" with icon note buttons {"OK"} with title "Preparing to copy CD files" giving up after 20 dbInstalling("•") end run
on dbInstalling(pProgress) try do shell script ("ps ax | grep 'ditto --rsrc'|grep -v grep") if the result ≠ "" then display dialog pProgress with title "Installing files from CD" buttons {""} giving up after 5 dbInstalling(pProgress & "•") end if end try end dbInstalling
-- Rodney Tamblyn OceanBrowser Ltd 44 Melville Street Dunedin, New Zealand Ph +64-3-4778606 extension 1 Technical Support: +64-3-4778606 ext. 5 (Mon-Friday 9-5pm NZ time) iax2:oceanbrowser.dyndns.info/rodney http://www.oceanbrowser.com/
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden