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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old Dec 7, 2012, 06:42 PM   #1
CountrySeacow
macrumors newbie
 
Join Date: Dec 2012
ApplescriptEditor; Renaming folders

Hello applescript users!
There is most likely a very simple answer to this, but i cannot find code that allows you to tell applescript to change the name of "FolderA" to "BFolder" (as an example).
Here is a sample scenario that i want to use it in:
Code:
tell application "Finder"
	activate
	if exists folder "Macintosh HD:Users:USERNAME:Library:Application Support:FolderA" then
--(*rename "FolderA" to "BFolder"*)
	else
--(*ETC*)
	end if
end tell
Where
-- (*TEXTHERE*)
is just there to note what i want there. The (*ETC*) is other code that is unnecessary in the scenario.
Thanks everyone!
CountrySeacow
CountrySeacow is offline   0 Reply With Quote

 
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
I just transferred some folders onto my external hardrive. A couple of the folders ha katieee28 iMac 2 Apr 11, 2014 02:13 AM
forklift users-renaming files/folders mrjayviper Mac Applications and Mac App Store 1 Mar 2, 2014 11:52 AM
help with better finder rename (renaming various folders) mrjayviper Mac Applications and Mac App Store 1 Jan 20, 2014 06:13 AM
Renaming folders in Terminal supertonic Mac Programming 6 Jun 29, 2013 12:16 PM
Outlook 2011 for Mac Offline Folders to Exchange Folders meymetkaplan Mac Applications and Mac App Store 0 Jan 23, 2013 08:34 AM

Forum Jump

All times are GMT -5. The time now is 09:26 AM.

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

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