Ability to run app user scripts?


#1

There have been some very useful user scripts posted as app. Would it be possible to add them to the list of user scripts to run from the palette?

thanks.


#2

I don’t think I’ll add any scripts yet by default. But you can add the scripts yourself by:

  1. Preferences > Open Scripts Folder
  2. Place the scripts that you want in that folder.
  3. Then the script should show up in the commands palette

#3

I think what @kleerkoat meant was to allow to run script application from the command palette. Like the pickDateTime application that popup a calendar, this script is contained inside an application bundle and when put inside the Scripts Folder, the command palette doesn’t show it.


#4

thanks for clarifying GuiB.


#5

I could try to add this, but do you (or @RobTrew) know if that script can be packaged up in a different form? To run these scripts I’m using NSUserScriptTask which has built in support for running AppleScripts, AutomatorTasks, and UnixTasks. I can probably also run an app by launching it through the workspace, but doing so would complicate that code a bit and possibly lead to other complications. Maybe pickDateTime can be bundled as an AutomatorTasks instead?


#6

I’ll take a look at whether it can be repackaged - launching arbitrary apps from inside an app is probably not really something that one would want to work :slight_smile:


#7

that would be awesome! thank you


#8

I have added a 3.5 preview version of the datePicker.app to its original thread.

Trying to launch it, even in a different wrapper, from inside the command palette does indeed get blocked by sandboxing, but you can still launch it form the TaskPaper script menu.


#9

I think I found a way… I almost got it directly with a script, but I’m unable to have a direct focus to the popup… So, I created an applescript that run the application instead. You can find it the same thread as @complexpoint here:


#10

thank you!


#11

I updated the script, it should works now


#12

awesome! works perfectly. thank you so much!


#13

Great! Happy to help!


#14

A summary of what seems to work for launching .app bundle scripts from the command palette: