Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Mar 30, 2006, 09:18 PM   #1
SC68Cal
macrumors 68000
 
Join Date: Feb 2006
Behold, for I have made Applescript!

Hey everyone, I made a nice little application using Applescript that fulfilled a basic need for my internet browsing. I needed somewhere organized for all my documents that I download from the internet to sit in, instead of being all cluttered on my desktop. When you run the application, it takes all the files and folders in it and moves them to the trash.

Code:
tell application "Finder"
		activate
		if the folder "Temp" of desktop exists then
			open folder "Temp" of desktop
			delete every file of folder "temp"
			delete every folder of folder "temp"
		else
			display dialog "There is no Temporary folder present on your desktop. Press Okay for one to be created for you"
			tell application "Finder"
				make new folder at desktop with properties {name:"Temp"}
			end tell
		end if
	end tell
SC68Cal is offline   0 Reply With Quote
Old Mar 30, 2006, 09:19 PM   #2
SC68Cal
Thread Starter
macrumors 68000
 
Join Date: Feb 2006
What I thought was interesting, is I originally made an automater workflow to do the same thing. What I noticed is that it's almost 8x as large as the application I created with applescript
SC68Cal is offline   0 Reply With Quote
Old Mar 31, 2006, 02:03 AM   #3
Soulstorm
macrumors 68000
 
Soulstorm's Avatar
 
Join Date: Feb 2005
When I was uusing applescript, I had made an application called Finder Utility which yould batch a dozen file renaming routines, and some good functions in the finder. Check it out in the link and see if you like it... Although for 2 years now I have moved to other languages, I still use it.

Applescript with Applescript studio is much more powerful than one can imagine when starting first time.
Soulstorm is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Eye Of The Beholder for iPhone aendaman iPhone and iPod touch Apps 55 Jun 10, 2012 11:54 AM
Applescript: renaming files in a system folder without having to enter admin password Compton Mac Programming 7 Sep 27, 2011 04:43 AM
For Sale - Custom Fish Tank made from Apple monitors IFixTheInternet Apple Collectors 1 Feb 22, 2011 05:38 AM
help with excel for mac 2008 damiang72 Mac Applications and Mac App Store 0 Nov 14, 2010 06:19 AM
Behold! For We May Yet Be in the Season of His Coming! Praise God Almighty! Shrek Community 569 Apr 1, 2003 03:59 PM


All times are GMT -5. The time now is 06:03 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC