Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

david151

macrumors newbie
Original poster
Jul 28, 2017
12
1
How do I create individual desktop shorcuts on Mac for Onlyoffice apps? This is easy in windows, as I just create a desktop shortcut with the path and add a switch at the end e.g. for document --new=doc. Here is an example:
C:\Program Files\ONLYOFFICE\DesktopEditors\DesktopEditors.exe" --new=doc

How to do this on a Mac, as there is nowhere to type in a path with a switch at the end. How do I get this working on a Mac?
 
It should be like this:
- open Script Editor(/Applications/Utilities/Script Editor)
- copy-paste the code

Code:
do shell script "/Applications/ONLYOFFICE.app/Contents/MacOS/ONLYOFFICE --new:word"

- save as an app on your Desktop.

Apple Support - Save a script as an app in Script Editor on Mac https://support.apple.com/guide/script-editor/scpedt1072/mac

Unfortunately, although the command creates a new Word document in OnlyOffice, the app does not exit. Adding “--single-window-app” did not help.

Running ONLYOFFICE Desktop Editors with parameters https://helpcenter.onlyoffice.com/installation/desktop-flags.aspx
 
  • Like
Reactions: david151
It should be like this:
- open Script Editor(/Applications/Utilities/Script Editor)
- copy-paste the code

Thank you that seems to work, but I get problems once I replace the icon on the desktop shortcut, as shown in this tutorial:

Everytime I click on the desktop icon to launch, it complains that it "would like to access files in your desktop folder" The strange thing is I can click either allow or don't allow and both open onlyoffice fine.
I have gone into:Apple menu > System Settings, click Privacy & Security in the sidebar, then click Files and Folders on the right. I then used the slider to allow access to the desktop folder. Problem is the warning message comes up every time. How do I stop this popup coming up? Is there a security setting I can disable?

Edit - I seem to have sorted it now by moving the app to the applications folder and making an alias which I put on the desktop.
 
Last edited:
  • Like
Reactions: bogdanw
What do you want to happen when you double-click this icon? If you’re only looking to launch the app, then just putting a shortcut (Mac alias) on the desktop, as you’ve figured out, is the way.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.