Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Display the size of the trash prior to emptying - Major rev 4 :D' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Display the size of the trash prior to emptying - Major rev 4 :D
Authored by: cougar718 on Mar 02, '03 09:57:48PM

Hiya Nosa!

It is not really a syntax error, either one will work. I tested the "is" versus <= 0 and I had the same results. If you had different results that would be strange. Let me know ok.

Thanks for your input!!

---
Rick Bargerhuff alias cougar
Programmer / Developer
Apple Technician / Specialist / Web Designer
Personal Email: cougar718@comcast.net



[ Reply to This | # ]
Display the size of the trash prior to emptying - Major rev 4 :D
Authored by: cougar718 on Mar 02, '03 10:04:01PM

Oh I see now. Wish I would have seen that before my last post... HAHA. I thought you didn't know what I was doing which was indicated by the "?" mark. So what happened...

MacOSXhints put a ? question mark there. It should be this instead...

if (trashamount <= 0) then
display dialog "Trash currently contains no items" buttons {"Ok"} default button 1
return false
end if

Compile to get the less than or equal sign.

Thanks Noja for seeing this.

---
Rick Bargerhuff alias cougar
Programmer / Developer
Apple Technician / Specialist / Web Designer
Personal Email: cougar718@comcast.net



[ Reply to This | # ]
Display the size of the trash prior to emptying - Major rev 4 :D
Authored by: nosaj56 on Mar 02, '03 10:58:58PM

I changed "is" on that line to what you told me to change it to. Script Editor 2.0b changed that to ≤. I get the same result as with "is." The script wouldn't complie with the "?".

[ Reply to This | # ]

Display the size of the trash prior to emptying - Major rev 4 :D
Authored by: maxruffi on Mar 02, '03 10:10:28PM
Hi, Rick. A little question: with your script, my trash don't detect folders, only files.You can help me?
My mac is a Cube 450 MHz, with Jaguar 10.2.4.
Thanks in advance

---
Max Ruffi

[ Reply to This | # ]