0
votes

I am looking to create a desktop shortcut in mac osx using pyshortcuts (kivy and python) and have used the pyshortcuts documentation but still can't seem to get it to work. I have successfuly installed it using pip3 and inserted the below code. This does create a desktop shortcut but when I double click on the shortcut it will not open. I believe my 'script' input is incorrect but I have no idea how to fix it. Thanks in advance!

from pyshortcuts import make_shortcut

make_shortcut(script='/Users/fluffy/Documents/Code_Projects/Python/Kivy/Dani_Kivy_App/daily.py', name='Daily',terminal=False,desktop=True)
1
create shortcut in normal way and open it editor to see if it looks the same as shortcut created with Python. OR maybe you need to assign .py to python. Or maybe you should - like in Linux - add shebang in first line of python script #!/usr/bin/env python and set it executable chmod +x script.py and then system will run it as normal program.furas

1 Answers

0
votes

You should tag pyshortcuts so they get notified about this comment and hopefully provide an answer. I have the same question.