An AppleScript/action to show a list of other AppleScripts?

Sharing and discussing custom actions for LaunchBar
Post Reply
Jono
Rank 4
Rank 4
Posts: 161
Joined: Mon Feb 25, 2008 11:25 am
Location: UK
Contact:

An AppleScript/action to show a list of other AppleScripts?

Post by Jono » Sun Mar 06, 2016 11:12 pm

I want to create an AppleScript/action than when selected and run shows a list of other scripts to if possible.

Say (for example) these are the scripts I want to show when I run the initial script:

Code: Select all

   set script01 to (path to home folder as text) & "Scripts:Script 01.scpt"
   set script02 to (path to home folder as text) & "Scripts:Script 02.scpt"
   set script03 to (path to home folder as text) & "Scripts:Script 03.scpt"


So after bringing up and selecting the script/action it would then show a list of scripts to choose from, like this

Image


I realise I could just but the scripts into a folder, bring up the folder and hit the Spacebar, but I'd like to use this for a number of things, and it would be nice to be able to do it with an AppleScript rather than keep creating folders to group the scripts together.


Is something like this possible?

Jono
Rank 4
Rank 4
Posts: 161
Joined: Mon Feb 25, 2008 11:25 am
Location: UK
Contact:

Re: An AppleScript/action to show a list of other AppleScripts?

Post by Jono » Tue Mar 08, 2016 11:19 pm

…never mind, I've managed to work this out.

Post Reply