Pages: [1]   Go Down

Author Topic: AppleScript to assign icon to folder?  (Read 1667 times)

emendelson

  • 32 MB
  • ***
  • Posts: 33
  • New Member
AppleScript to assign icon to folder?
« on: July 17, 2024, 04:25:41 PM »

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.
Logged

emendelson

  • 32 MB
  • ***
  • Posts: 33
  • New Member
Re: AppleScript to assign icon to folder?
« Reply #1 on: July 17, 2024, 04:51:30 PM »

Found it: it's in Akua Sweets: set the custom icon of

The syntax seems to be:
Code: [Select]
set the custom icon of alias "whatever:file" to the icon for alias "whatever:otherfile"
« Last Edit: July 17, 2024, 05:03:29 PM by emendelson »
Logged

IIO

  • Staff Member
  • 4096 MB
  • *******
  • Posts: 4614
  • just a number
Re: AppleScript to assign icon to folder?
« Reply #2 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.
Logged
insert arbitrary signature here

emendelson

  • 32 MB
  • ***
  • Posts: 33
  • New Member
Re: AppleScript to assign icon to folder?
« Reply #3 on: July 17, 2024, 06:30:37 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.

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.
Logged

IIO

  • Staff Member
  • 4096 MB
  • *******
  • Posts: 4614
  • just a number
Re: AppleScript to assign icon to folder?
« Reply #4 on: July 22, 2024, 04:20:13 PM »

there are some neat contextual menu items for "get icon" and "apply icon" as alternative for single jobs.
Logged
insert arbitrary signature here

emendelson

  • 32 MB
  • ***
  • Posts: 33
  • New Member
Re: AppleScript to assign icon to folder?
« Reply #5 on: July 22, 2024, 05:54:53 PM »

That sounds very useful. If you find it, I'll be very glad to have it.
Logged

IIO

  • Staff Member
  • 4096 MB
  • *******
  • Posts: 4614
  • just a number
Re: AppleScript to assign icon to folder?
« Reply #6 on: July 23, 2024, 01:24:43 AM »

i *think* it is called icon tools - that one it is in our downloads. otherwise i have to look into my own install :)
Logged
insert arbitrary signature here

emendelson

  • 32 MB
  • ***
  • Posts: 33
  • New Member
Re: AppleScript to assign icon to folder?
« Reply #7 on: July 24, 2024, 04:55:32 PM »

 mod: pardon, hit the wrong button and edited your post :)
« Last Edit: July 28, 2024, 02:57:54 PM by IIO »
Logged

IIO

  • Staff Member
  • 4096 MB
  • *******
  • Posts: 4614
  • just a number
Re: AppleScript to assign icon to folder?
« Reply #8 on: July 28, 2024, 02:57:10 PM »

should be no problem, i was really happy to find that in about 2016, and so i definetly have a proper backup somewhere in case i cant collect the items from my install.

i´d recommend to not drag more than ~100 items at once on it, and you should keep your fingers off the mouse until it is finished, because that can interrupt the execution. otherwise it is really helpful. :)

will attach it here.
Logged
insert arbitrary signature here
Pages: [1]   Go Up
 

Recent Topics