I am fairly familiar with AppleScript, but I just downloaded Xcode, and I am trying to make a simple app, but I am completely lost.
What I am making is an app where it asks for icons for Finder, Empty Trash, and Full Trash. I have three check boxes, "Finder," "Trash Empty," and "Trash Full." Whichever are checked, when you click the "Change my Icons!" button, it will ask for the appropriate icons, and move them to: /System/Library/CoreServices/Dock.app/Contents/Resources, then run the Terminal command: killall Dock. I have the appearance set up, but I am clueless on how to match the buttons to the command, and how to make a variable out of each check mark.
Thanks So much!
To get an alias of the duplicate file, you can just coerce the Finder reference to an alias, for example
set theDupe2 to (duplicate FullTrashIcon) as alias
You can access items in the Resources folder of the application bundle the regular way:
set thePath to path to resource "trashfull.png" -- alias
or the ASObjC way, using the NSBundle class:
set thePath to current application's NSBundle's mainBundle's pathForResource_ofType_("trashfull", "png") -- POSIX
edit: you can't use path to me in ASObjC, use the above instead.