Re: Display Status Window
Re: Display Status Window
- Subject: Re: Display Status Window
- From: John Delacour <email@hidden>
- Date: Thu, 20 Mar 2003 00:46:35 +0000
- Mac-eudora-version: 6.0a11
At 3:33 pm -0600 19/3/03, Darwin Zins wrote:
I'm just trying to understand how I would redistribute it. I am
very new to applescript and I am also new to Apple/Mac.
Could you outline the steps I would need to go through to include a
dialog with my application?
Here's a way to do it without anything but standard applications, so
you would need to include nothing in the distribution. All you need
to do is make sure that the TextEdit is visible to the user.
makeProgressWindow()
repeat with i from 1 to 100
my logprogress(i)
end repeat
--___________________________________________________
on logprogress(s)
set s to s as string
tell application "TextEdit" to set text of document 1 to s
end logprogress
on makeProgressWindow()
set f to "" & (path to "cusr") & "progress"
open for access file f
close access file f
tell application "TextEdit"
open {alias f}
set bounds of window 1 to {0, 0, 300, 200}
end tell
end makeProgressWindow
_______________________________________________
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.