progress indicator stops while do shell script
progress indicator stops while do shell script
- Subject: progress indicator stops while do shell script
- From: Gary Bielby <email@hidden>
- Date: Wed, 30 Jul 2003 13:37:19 +0100
Just wondering if there is a way around this.
l'm working in Project Builder/AppleScript Studio and l've got a status
panel with a progress indicator set to start before l get to my 'do shell
script' command.
l was hoping that this progress indicator would keep on animating while the
shell script did it's stuff just as a visual thing so you know it's all
working but as soon as the shell script starts the progress indicator stops.
My too code functions at the moment:
--------------------------
on openStatusPanel(statusMessage)
if initialized is false then
if not statusPanelNibLoaded then
load nib "StatusPanel"
set statusPanelNibLoaded to true
set statusPanelWindow to window "statusWindow"
end if
tell statusPanelWindow
set indeterminate of progress indicator "progress"
to true
tell progress indicator "progress" to start
set contents of text field "statusmessage" to
statusMessage
end tell
set initialized to true
end if
display panel statusPanelWindow attached to window "main"
end openStatusPanel
on ftpFiles(shortchosenDates, tlaValue, serviceValue)
set ftpProg to "/Users/garybi/perlscripts/ftpscript.pl" as string
try
do shell script ("perl " & ftpProg & " " & shortchosenDates
& " " & tlaValue & " " & serviceValue) as string
on error errMsg
display dialog "Unix FTP: " & errMsg
end try
end ftpFiles
Hope someone can help,
Regards, Gary.
This E-Mail and any attachment is intended only for the person or entity for
which it is addressed and may contain confidential material. If you are not
the addressee or have received this E-Mail in error, please inform the
sender immediately and delete it from your computer. In addition, if you are
not the addressee or have received this E-Mail in error, any disclosure,
copying, distribution or any action taken or omitted to be taken in reliance
upon it is prohibited and may be unlawful.
If this E-Mail has been transmitted outside the ordinary course of its
business, the company for which the sender works accepts no liability for
any loss or damage suffered by any person arising from any use of or
reliance on information contained in this E-Mail, and any opinion expressed
in this E-Mail is personal to the sender and may not reflect the opinion of
such company. Although the network operator makes every reasonable effort to
keep its network free from viruses, neither the network operator nor the
sender or the company for which the sender works accepts any responsibility
for computer viruses transmitted through this E-Mail or any attachments; it
is your responsibility to virus scan this E-Mail and any attachments. Any
E-Mail reply to this address may be subject to interception or monitoring
for operational reasons or for lawful business practices.
_______________________________________________
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.