Once created the service, you right-click directly on the folder (in the Finder), choose and start the service. Set appIconResources to (scriptsPath & "setCustomIconForFolder.scptd:Contents:Resources:") as aliasīy the way, in Automator you can create a great service for this task. Property scriptsPath : path to scripts folder from user domain as text Store it inside Scripts folder of Library of user domain. Get free Colourful folder icons in iOS, Material, Windows and other design styles for web, mobile, and graphic design projects.Assuming you named the bundle “setCustomIconForFolder”.You want create Automator workflow or app? When you run it from Automator the path to me is the path to Automator.app’s bundle instead of script bundle’s path.
Nothing happens except it says true at the end. I created a script bundle with icon files inside the resource folder. Ws's setIcon:theImage forFile:folderPosixPath options:0 Set theImage to current application's NSImage's alloc()'s initWithContentsOfFile:icnsPosixPath On setCustomIconForFolder(icnsPosixPath, folderPosixPath) SetCustomIconForFolder(icnsPosixPath, folderPosixPath) of me Set folderPosixPath to POSIX path of (choose folder with prompt "Choose Folder") Set icnsPosixPath to POSIX path of (choose file of type "" default location appIconResources with prompt "Choose Icon File") Set appIconResources to ((path to me as text) & "Contents:Resources:") as alias Now, you can use this script bundle running it any time. scptd-bundle to ShowPackageContents window, go to Resources folder of Contents folder.
The following simple script is not what you are asking. Instead, you will have to use a pure ASOC script without the participation of Preview and the clipboard. Instead of 8 operations to customize a folder, you make 2 – that’s a big difference because you can apply the icon of a folder almost without interrupting your computation.Some steps from 1-8 can be automated, but others will require GUI scripting, making the script useless for other versions of Preview. On selecting, the icon is applied to a folder instantly. When you want to customize some folder to make it more prominent than the others, you simply right click on it, select Folder Marker and select an icon that may be a folder icon of some specific color (red, blue, green, etc) or a folder icon with some image on it that symbolizes its purpose. After installing it, you work as you normally do. It’s named Folder Marker and it tackles the too-many-folders problem in a more elegant manner than Windows tools.Īs the name implies, Folder Marker uses a marker metaphor to make some folders easier to find. The way is needlessly complicated as users have to go down a long ‘click-and-open road’ through Windows dialogs before they can actually change the icon folder.
You start here > right click the folder > select Properties > click Customize tab > click Change Icon... > select an icon from this icon set > click OK > click Apply > OK again… To change an icon of a folder, you need to do the following: