Page 1 of 1

OSX switch dock icon

Posted: Fri Jul 06, 2012 12:07 pm
by doobox
Hi guy's...
I have done this before to animate an OSX dock icon, when something happens in the app.. But for the life of me i cant seem to get it to work today.
Am i missing something obvious..?

I have a png image on the card "test.png" id = 1986

I have tried to switch out the dock icon for the png using the following commands but none are now successful. I don't remember it being more difficult than this. I am wondering if it is still supported in Lion.

Code: Select all

set the icon of this stack to 1986

Code: Select all

set the icon of this stack to img "test.png"

Code: Select all

set the icon of this stack to the short id of img "test.png"

Re: OSX switch dock icon

Posted: Fri Jul 06, 2012 12:28 pm
by Klaus
Hi Gary,

...
set THE ICON to 1003
## without "of stack"
...
I was not sure at first, but the dictionary gladly helped me out 8)

Unfortunately this feature ist still marked "experimental" even after all these years!
It was introduced in version 3.5!? :?


Best

Klaus

Re: OSX switch dock icon

Posted: Fri Jul 06, 2012 12:51 pm
by doobox
Ah.. Thanks again Klaus,
I read and read the dictionary entry, and yet overlooked the very first line and focused on the examples :-(

All sweet now : http://www.youtube.com/watch?v=KfRMW_9H138

Re: OSX switch dock icon

Posted: Fri Jul 06, 2012 1:05 pm
by Klaus
Hi Gary,

"blinkenlight", cool :D

Its about time they mark this cool feature "not more experimental"!


Best

Klaus