create an alias on the dock of OSX
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
create an alias on the dock of OSX
Hi All
Is there a way to create an alias on the dock
I readed the entry for createalias in dictinary but
i didnt a doc about dock path
Jean-Marc
Is there a way to create an alias on the dock
I readed the entry for createalias in dictinary but
i didnt a doc about dock path
Jean-Marc
https://alternatic.ch
Re: create an alias on the dock of OSX
Bonjour Jean-Marc,
this is only possible via AppleScript or SHELL (first hit in GOOGLE
):
http://hints.macworld.com/article.php?s ... 9170450489
Best
Klaus
this is only possible via AppleScript or SHELL (first hit in GOOGLE

http://hints.macworld.com/article.php?s ... 9170450489
Best
Klaus
Re: create an alias on the dock of OSX
Hi Jean-Marc,
Before following Klaus' advice, you need to check whether the item already exists in the dock. If it already exists, you don't want to add it again.
Use the following line to retrieve info about all the items in the dock:
Now parse the info in myDockItems and check if it contains your item. If it does't, then proceed as suggested by Klaus.
Best,
Mark
Before following Klaus' advice, you need to check whether the item already exists in the dock. If it already exists, you don't want to add it again.
Use the following line to retrieve info about all the items in the dock:
Code: Select all
put shell("defaults read com.apple.dock persistent-apps") into myDockItems
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: create an alias on the dock of OSX
Hi Klaus and Mark,
Thank
I'll cooking with shell first time
Best
Jean-Marc
Thank
I'll cooking with shell first time
Best
Jean-Marc
https://alternatic.ch
-
- VIP Livecode Opensource Backer
- Posts: 10046
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: create an alias on the dock of OSX
If you plan on submitting your app to the forthcoming OS X App Store, you may want to skip this feature. IIRC apps that install icons to the Dock will be rejected from the new App Store.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: create an alias on the dock of OSX
Hi Richard,
All the best
Jean-Marc
Thank for thisIf you plan on submitting your app to the forthcoming OS X App Store, you may want to skip this feature. IIRC apps that install icons to the Dock will be rejected from the new App Store.
All the best
Jean-Marc
https://alternatic.ch