• 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: Newbie Progress Bar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Newbie Progress Bar


  • Subject: RE: Newbie Progress Bar
  • From: Chad Gray <email@hidden>
  • Date: Fri, 15 Dec 2000 08:45:07 -0500

I placed the "of me" in my script and it works great! Thanks for the help everyone. Now i just need to figure out how i can get the gauge to display a percentage of the files renamed instead of a fixed number. :)

Thanks again for all the help! Below is the working code.


on AppendSuffix(thefolder, MySuffix)
tell application "Finder"
set myFolderContents to every file of thefolder
repeat with x in myFolderContents
if name of x does not end with MySuffix then
try
set name of x to (name of x & MySuffix)
---------->UpdateGauge() of me
on error
end try
end if
end repeat
end tell
end AppendSuffix

on UpdateGauge()
set setting of gauge "progress" to ((setting of gauge "progress") + 2)
tell gauge "progress" to draw
end UpdateGauge



At 05:27 PM 12/14/00 -0600, you wrote:
The script errors and says it does not understand my
> UpdateGauge(). What
> am i doing wrong? Or does anyone know of some code i can look at?
>

try this:

UpdateGauge() of me

or

tell me to UpdateGauge()

When calling a subroutine from a subroutine you have to tell AS that it is a
part of the script hence the "of me". Should fix it for ya.

Steve Goodman
Vertis - THE LTC GROUP

......."Duct tape is like the force, it has a light side and a dark side and
it holds the universe together."------Unknown


References: 
 >RE: Newbie Progress Bar (From: "Goodman, Steve" <email@hidden>)

  • Prev by Date: AppleScriptCentral.com wants your stuff
  • Next by Date: Re: date snippet
  • Previous by thread: RE: Newbie Progress Bar
  • Next by thread: Re: Newbie Progress Bar
  • Index(es):
    • Date
    • Thread