OSX switch dock icon

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
doobox
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 284
Joined: Tue May 24, 2011 11:47 pm

OSX switch dock icon

Post by doobox » Fri Jul 06, 2012 12:07 pm

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"
Kind Regards
Gary

https://www.doobox.co.uk

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: OSX switch dock icon

Post by Klaus » Fri Jul 06, 2012 12:28 pm

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

doobox
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 284
Joined: Tue May 24, 2011 11:47 pm

Re: OSX switch dock icon

Post by doobox » Fri Jul 06, 2012 12:51 pm

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
Kind Regards
Gary

https://www.doobox.co.uk

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: OSX switch dock icon

Post by Klaus » Fri Jul 06, 2012 1:05 pm

Hi Gary,

"blinkenlight", cool :D

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


Best

Klaus

Post Reply