• 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: Michelle Steiner <email@hidden>
  • Date: Sun, 17 Dec 2000 11:16:47 -0800

On 12/17/00 11:15 AM, Ted Wood <email@hidden> wrote:

>... becomes....
>
>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)
> tell me to UpdateGauge() -- <<<< --- note the
>added tell statment here
> end try
> end if
> end repeat
> end tell
>end AppendSuffix

How about this:

... becomes....

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)
my UpdateGauge()
(* instead of "tell me to" just use "my*)
end try
end if
end repeat
end tell
end AppendSuffix

--Michelle

----------------------------------------------------------------------
| Michelle Steiner | Hard as it may be to believe, my |
| email@hidden | life has been based on a true story. |
----------------------------------------------------------------------


  • Prev by Date: Re: library of subroutines - help needed
  • Next by Date: Re: applescript-users digest, Vol 2 #140 - 12 msgs
  • Previous by thread: Re: Newbie Progress Bar
  • Next by thread: Re: Newbie Progress Bar
  • Index(es):
    • Date
    • Thread