Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
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

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


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

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

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