Author Topic: How to add a script?  (Read 1693 times)

tduell

  • Newbie
  • *
  • Posts: 38
  • Karma: 0
  • Scribus User
How to add a script?
« on: February 14, 2014, 04:44:15 am »
Hello,
Is there any way of adding a script so that it shows up the Scripter -> Scribus Scrips menu?
I have added a python script to my /usr/share/scribus/scripts dir but it isn't being seen, so that doesn't appear to be the correct approach.

Cheers,
Terry

samps

  • Newbie
  • *
  • Posts: 17
  • Karma: 1
  • Code monkey with an artistic streak...
Re: How to add a script?
« Reply #1 on: February 14, 2014, 07:09:54 am »
Hmmm!?

I just tried that approach.... and it worked beautifully.

Have you checked that the permissions on the script are correct?

Samps

tduell

  • Newbie
  • *
  • Posts: 38
  • Karma: 0
  • Scribus User
Re: How to add a script?
« Reply #2 on: February 14, 2014, 07:29:14 am »
Hmmm!?

I just tried that approach.... and it worked beautifully.

Have you checked that the permissions on the script are correct?

Samps
I checked permissions, and the script was set to "Allow executing file as program", which isn't set for the supplied scripts. All other permissions were the same as for supplied scripts.
I unset the 'Allow executing...' and restarted Scribus, but my script is still not seen.

Cheers,
Terry

tduell

  • Newbie
  • *
  • Posts: 38
  • Karma: 0
  • Scribus User
Re: How to add a script?
« Reply #3 on: February 14, 2014, 07:40:35 am »
My script (in /usr/share/scribus/scripts/) is now showing up in the 'Scripter -> Recent_Scripts' as '/usr/share/scribus/scripts/whatnot.py'.
What a curious thing...if it knows it is in the scripts dir why not show it in the 'Scripter->Scribus_Scripts' menu?

Cheers,
Terry