Trash or Program is being Stubborn!

BIGDOGquake3

Get It, BIG MAC! ::ha::
I downloaded this program called iTaf, and it lets me wake up to mp3's. It was all well and good but I wanted to get rid of it because I like Mp3 Alarm Clock better when I try to Eject/Trash the program it shows me an error (see attachment). When I opend it it told be it would hide the program in the backgroud and I need to enter this (somewher, I have no iadea what to do with it)

#!/bin/sh

itaf=`ps -axc | awk '/iTaf$/ {print $1}'`
if [ "$itaf" != "" ]; then
osascpt=`osascript -l AppleScript -e 'tell Application "SystemUIServer"' -e 'activate' -e 'display dialog "\tiTaf is running...\n\nDo you want quit iTaf daemon ?" buttons {"Yes", "No"} default button "No"' -e 'end tell'`
if [ "$osascpt" == "button returned:No" ]; then
#osascript -l AppleScript -e 'tell Application "SystemUIServer"' -e 'activate' -e 'display dialog "iTaf is going to continue to run." buttons {"Yes"} default button "OK"' -e 'end tell'
exit
fi
killall -c iTaf
osascript -l AppleScript -e 'tell Application "SystemUIServer"' -e 'activate' -e 'display dialog "\tiTaf daemon has been stopped." buttons {"OK"} default button "OK"' -e 'end tell'
exit
fi
osascript -l AppleScript -e 'tell Application "SystemUIServer"' -e 'activate' -e 'display dialog "\tNO active iTaf daemon..." buttons {"OK"} default button "OK"' -e 'end tell'
 

Attachments

  • picture 1.jpg
    picture 1.jpg
    53.6 KB · Views: 13
Open the terminal and type:

cd ~/.Trash
<hit return>

sudo rm -rf

put a space after the f and drag the item you want deleted to the terminal so that its path is automatically entered, then press return

give it your admin password and hit return
 
Hey thanks, that did the trick.

As for this:

#!/bin/sh

itaf=`ps -axc | awk '/iTaf$/ {print $1}'`
if [ "$itaf" != "" ]; then
osascpt=`osascript -l AppleScript -e 'tell Application "SystemUIServer"' -e 'activate' -e 'display dialog "\tiTaf is running...\n\nDo you want quit iTaf daemon ?" buttons {"Yes", "No"} default button "No"' -e 'end tell'`
if [ "$osascpt" == "button returned:No" ]; then
#osascript -l AppleScript -e 'tell Application "SystemUIServer"' -e 'activate' -e 'display dialog "iTaf is going to continue to run." buttons {"Yes"} default button "OK"' -e 'end tell'
exit
fi
killall -c iTaf
osascript -l AppleScript -e 'tell Application "SystemUIServer"' -e 'activate' -e 'display dialog "\tiTaf daemon has been stopped." buttons {"OK"} default button "OK"' -e 'end tell'
exit
fi
osascript -l AppleScript -e 'tell Application "SystemUIServer"' -e 'activate' -e 'display dialog "\tNO active iTaf daemon..." buttons {"OK"} default button "OK"' -e 'end tell'

What is it?
 
BIGDOGquake3,

Those are shell commands. You'd enter them using the Terminal program.

Doug
 
Back
Top