Hi, guys I have this really simple question I have this apple script that basically helps to clean and tidy your desktop. It creates folder in the documents folder and names the folder by month e.g "Desktop October" then moves all the items on your desktop to that folder. My question is how I am going to convert this to objective-c. I have tried the NSFileManger but had no luck, can someone help me?
Code:
display alert ("How DesktopTidy Works") message ("DesktopTidy moves all your files to your documents folder and organizes them by month. So you get a clean desktop every day, but your files are never lost and you can get back to them anytime you want!") buttons {"Continue"} default button "Continue"
if button returned of result is "Continue" then set foldername to ("Desktop " & month of (current date))
set docsfolder to (path to documents folder) as string
tell application "Finder"
if not (exists folder (docsfolder & foldername)) then
make new folder at docsfolder with properties {name:foldername}
end if
move items of (path to desktop folder) to folder (docsfolder & foldername)
end tell