New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Apps and Games Discussion of applications and games available for Mac OS X.

LibreOffice Dock Icons


Post Reply New Thread Subscribe

 
Thread Tools
cdmoomaw

 
Member Since: Nov 05, 2011
Location: Lauderdale Co, Alabama
Posts: 8
cdmoomaw is on a distinguished road
Mac Specs: Early 2011 21.5" iMac 2.5 Ghz

cdmoomaw is offline
LibreOffice, for those of you unfamiliar with it, is a free, open sourced office suite recently split from the OpenOffice.org suite. Once installed, it lumps its word processor, spreadsheet, presentation, drawing, database, and formula applications into one app, and thus, one dock icon. Does anyone out there know how to "split" those up, for easier access. If you are able to do this with OpenOffice.org, please let me know, as it may work for LibreOffice as well.

Thank you,
~ Chris

Look...don't you sometimes think that it may just have been your fault after all?
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,354
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
It appears that the Mac version of LibreOffice is set up this way and can't be changed. You can however make your own individual launchers.

Open up Automator and create an application. Add the "Run Shell Script" action. For the value, add the following for the word processor:
Code:
/Applications/LibreOffice.app/Contents/MacOS/swriter
Save that as an application and you've got yourself a launcher for the word processor.

Repeat those steps, replacing the script value with the following for each of the other parts:

Calc:
Code:
/Applications/LibreOffice.app/Contents/MacOS/scalc
Draw:
Code:
/Applications/LibreOffice.app/Contents/MacOS/sdraw
Base:
Code:
/Applications/LibreOffice.app/Contents/MacOS/sbase
Impress:
Code:
/Applications/LibreOffice.app/Contents/MacOS/simpress
Math:
Code:
/Applications/LibreOffice.app/Contents/MacOS/smath
It's admittedly not the most elegant solution but it should get the job done.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
cdmoomaw

 
Member Since: Nov 05, 2011
Location: Lauderdale Co, Alabama
Posts: 8
cdmoomaw is on a distinguished road
Mac Specs: Early 2011 21.5" iMac 2.5 Ghz

cdmoomaw is offline
Elegant or not, it works, and I am able to put each individual launcher in the dock. On top of all that, I learned something new for Mac OS, the essential equivalent of a DOS Batch file, which I used to find quite handy in Windows.

Thanks,
~ Chris

Look...don't you sometimes think that it may just have been your fault after all?
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,354
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
Since you mentioned batch files, you might want to look up "bash scripts", AppleScript and Automator. Each of those can help automate tasks and do other neat OS level things (bash scripting is the closest to batch files).

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
cdmoomaw

 
Member Since: Nov 05, 2011
Location: Lauderdale Co, Alabama
Posts: 8
cdmoomaw is on a distinguished road
Mac Specs: Early 2011 21.5" iMac 2.5 Ghz

cdmoomaw is offline
Sounds good, bash is one of the things I like about Mac OS, I can go from Xubuntu on my notebook computer to Mac OS on my iMac and not change a thing, thanks for mentioning that. By the way, you wouldn't happen to know of a way to get the icons out of LibreOffice for the individual modules? I tried copying a JPEG, but when I keep it in the Dock, it reverts to the Automater logo.

~ Chris

Look...don't you sometimes think that it may just have been your fault after all?
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,354
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
You need to have ICNS files. Unfortunately, unlike just about any other OS I've used, OS X is very picky when it comes to icons. Take a look at this document to see how to change the icon. To create ICNS files out of pictures, take a look at img2icns - it's simple and the base version is free.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
joannif

 
Member Since: May 06, 2012
Posts: 2
joannif is on a distinguished road

joannif is offline
I just downloaded libreOffice on OSX 10.7 and am trying to put separate icons for writer and calc on the dock. I've tried the suggested solution with automator several times, but get error msg about running inside or outside automator, etc. It's the first time I've seen Automator, and I must be doing something wrong. When I added the "Get specified file" action (as the error msg suggested) before "Run shell script," I got an application that opened the automator. Another time I created a new file in libreoffice writer, but it was just a file.
Your instructions say to add code "for the value," after adding "Run shell script," but I'm not seeing an obvious place to add the code.
The word cat comes up in a box, and I've put the copied code there with and without including the word cat. Maybe a screen shot?
Sorry to be dense about this.

Joann
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,354
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
I'll save you the trouble of fighting with Automator. Here's a zip file containing "launchers" for each of the apps. These should work assuming you've put LibreOffice in /Applications.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
joannif

 
Member Since: May 06, 2012
Posts: 2
joannif is on a distinguished road

joannif is offline
Thank you very much; I'm using them, but I'd still like to know how to have done it. Will work on that.
Joann
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,354
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
When you add the "run shell script" action, you needed to replace the script action. By default, it executes "cat" - that's what you need to change.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
TexasRob

 
Member Since: Jul 03, 2012
Posts: 1
TexasRob is on a distinguished road

TexasRob is offline
Thanks for the tip!
QUOTE Thanks
kernst

 
Member Since: Aug 29, 2012
Posts: 1
kernst is on a distinguished road

kernst is offline
Quote:
Originally Posted by vansmith View Post
You need to have ICNS files. Unfortunately, unlike just about any other OS I've used, OS X is very picky when it comes to icons.
The LibreOffice application bundle already contains .icns files that work just fine for the Automator apps created using the instructions above, without any extra software, using the regular Mac OS way of changing file/app icons.

Locate LibreOffice.app in the Finder, then right-click and choose Show Package Contents from the context menu.

Inside the package, inside a folder called "Resources" you'll see a whole bunch of .icns files, for all the apps and document types. As of Mac OS 10.7 (not sure about earlier), you can open these in Preview.app, highlight the largest icon size in the sidebar (preview pane), then copy the icon to the clipboard with ⌘C.

Next, locate the Automator app you created before (I put mine in ~/Applications). Right click on the Automator app in Finder and choose Get Info (or ⌘I), then click on the icon in the upper-left of the inspector window to highlight it. Press ⌘V to paste the icon from the clipboard. Close the file inspector 'n you're done. No muss, no fuss.
QUOTE Thanks
Arkhaic

 
Member Since: Oct 07, 2013
Posts: 1
Arkhaic is on a distinguished road

Arkhaic is offline
As of the current LibreOffice version you may make template files from which you can do what was described below. To get them into the dock you simply rename the templates with the .app extension and then drag them into the dock. You may then rename the templates again (Say, name a template for word processing Writer) and you're good to go.
QUOTE Thanks

Post Reply New Thread Subscribe


« Stop Mail from opening when internet connection in renewed | A defined desktop for an app »
Thread Tools

Currently Active Users Viewing This Thread: 2 (0 members and 2 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
DOCK: Springloaded icons yve OS X - Operating System 0 07-27-2010 11:10 AM
Dock Icons Stuck AndrewLouie OS X - Operating System 24 11-04-2009 08:17 PM
restore original dock and icons timidhearts OS X - Operating System 6 09-14-2009 09:54 AM
Multiple adobe reader icons in the dock macusersince84 OS X - Apps and Games 2 06-02-2009 10:15 PM
Changing Dock Icons Manually sarahsboy18 OS X - Operating System 1 10-05-2006 02:04 PM

All times are GMT -4. The time now is 12:36 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?