My Digital Story

Just to make live easier…

Permanently delete file in Mac OS X Finder

One of the most annoying part when using Apple Mac OS X is to permanently delete file in Finder ( the equivalent of Windows Explorer in Windows).

To delete file in Finder window, you need to press CMD+delete which will move the file to Trash bin. What actually happen from this action is, the file is just “hidden” from user in that particular folder/location. The file is yet permanently deleted. While the intention of this feature is well understood, which is to avoid us from mistakenly and unintentionally delete our files, sometimes it is just too annoying as after that we havw to go to Trash to actually empty the Trash. Furthermore, in Trash, you can not permanently delete individual file there. Once you press the “Empty” it will delete all the files in Trash.

For example, when you need to empty file in USB flash drive to physically free the disk spacw, if you just delete the files by moving them to Trash, your USB flash drive will still shows that it is still not yet EMPTY. Only after you empty the Trash, then only the USB flash drive will really be empty with full of free space.

Luckily someone has created an Applescript that will do just that, permanently delete your selected file in Finder. In addition to that you need an application called Spark that will assign keyboard key in order to execute the script. I assign Shift+delete keys to execute the script.

Both the Script and Spark application can be accessed below:

set frontAppPath to (path to frontmost application) as string

if the frontAppPath ends with “” then
tell application “Finder”
set selectionList to get selection as list
set selectedCount to count items in selectionList
–Added code1
display dialog “Do you really want to delete this item?” buttons {“OK”, “Cancel”} default button 2
if the button returned of the result is “Cancel” then
–End of added code1
if selectedCount > 0 then
repeat with i from 1 to number of items in the selectionList
set selectedItem to item i of the selectionList
set selectedName to the name of selectedItem
set homePath to (path to home folder) as string
set trashPath to homePath & “.Trash:”
set deletePath to trashPath & selectedName & “:”

if not ((kind of selectedItem as string) is equal to “Volume”) then
if (selectedItem as string) contains “.Trash” then
set posixPath to POSIX path of (selectedItem as string) as string
do shell script “rm -rf “” & posixPath & “””
deletePath as alias
display dialog “Error: file named “” & selectedName & “” already exists in the Trash.”
on error
tell application “Finder” to delete selectedItem
do shell script “rm -rf ~/.Trash/”” & selectedName & “””
end try
end try
end if
end if
end repeat
end if
–Added code2
end if
–End of added code2
end tell
end if

Download SPARK


23/02/2011 Posted by | Uncategorized | , | 1 Comment

EasyFind: Find file name on Mac OS

This will be the most embarrassing posting for Apple Mac OS X. Mac OS X claims it has a super advanced search tool called “Spotlight”. With all its wonderful search capability, it misses the most basic feature, to find file based on name. Spotlight will not be able to find file if you can not remember the whole exact word of the file name.

That’s why you have to download EasyFind that will supplement the missing feature of Spotlight (or cover the Mac OS embarrassment?). You can download from the developer website HERE.

15/02/2011 Posted by | Mac | , | Leave a comment

Cisco AnyConnect Secure Mobility client

For VPN access, normally I just use the Cisco AnyConnect client on Mac OS X. This client was earlier available from my company VPN website (we call it workforce portal).

However, I just realized that the Sharepoint-based Personal Performance Appraisal (PPA) is not compatible at all with either Mozilla Firefox or Safari. I then started my Windows XP Parallel Desktop. To be honest, I haven’t use Windows XP on Parallel Desktop for very long time as I am really stuck to Mac OS X environment. The Mac OS X is just to good to revert back to Windows (though I realize the newly revived Windows 7 that run on my old Acer desktop really run so smoothly).

In Windows XP, I then run Internet Explorer and immediately point the browser to my workforce portal to install the Cisco AnyConnect client for Windows. To my dismay, there is no longer page to allow me to download the client. I then went to Cisco website with the thought Cisco must host it for free download. Unfortunately, Cisco requires client password to access any download stuff.

So, I have to go to Mr Google and after very tedious search, I found one and install it immediately. No my surprise, the client GUI is slight differently from what I saw running on my other Windows 7 client. The name of the client is also different. It still bears the “Cisco AnyConnect” but with additional “Secure Mobility” name. Regardless of that, when I enter my company VPN address, it just easily get connected to the network completely with no error what so ever.

So, I decided to host this hard-to-find Cisco client software. Please download from HERE.

15/02/2011 Posted by | Windows XP troubleshootings | , , | 2 Comments