Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Mar 30, 2006, 10: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, 10: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, 03: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

Similar Threads
thread Thread Starter Forum Replies Last Post
iPad: Behold: the yellow iPad Air and the (whiter but uneven Air) Jinzen iPad 59 Nov 15, 2013 03:09 PM
AppleScript: How do I save multiple Excel sheets to one pdf using Applescript sbtaylor1 Mac Programming 0 Oct 29, 2013 12:38 AM
AppleScript: How do I save multiple Excel sheets to one pdf using Applescript sbtaylor1 Mac Applications and Mac App Store 0 Oct 29, 2013 12:32 AM
I'm positive that iOS 7 was made for a larger iPhone (I made a mockup) bertishere iOS 7 27 Jun 17, 2013 01:44 PM
What is the difference between a guitar made in Asia and an iPhone made in Asia? musika Community Discussion 3 Jun 18, 2012 11:27 AM

Forum Jump

All times are GMT -5. The time now is 05:03 PM.

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

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