Mac OS 9 Discussion > Software
AppleScript to assign icon to folder?
emendelson:
I think I remember an osax that did this, but I can't remember which it is:
Is there an AppleScript osax or other command that an assign an icon from an icon file (in this case created by Icon Machine) to a folder? I've looked through the dictionaries I have on my 9.0.4 setup, without success.
emendelson:
Found it: it's in Akua Sweets: set the custom icon of
The syntax seems to be:
--- Code: ---set the custom icon of alias "whatever:file" to the icon for alias "whatever:otherfile"
--- End code ---
IIO:
if you have the osaxen stuff installed (and if you can use it) i have a script somewhere which does this for whole folders full of items.
emendelson:
--- Quote from: IIO on July 17, 2024, 06:05:06 PM ---if you have the osaxen stuff installed (and if you can use it) i have a script somewhere which does this for whole folders full of items.
--- End quote ---
I have it working for the one folder I need to use, but it would be good to have your script to use for items within that folder. Don't go to any trouble to find it, because I'm not certain I can actually use it.
IIO:
there are some neat contextual menu items for "get icon" and "apply icon" as alternative for single jobs.
Navigation
[0] Message Index
[#] Next page
Go to full version