Applescript action -- how to have third pane automatically go in text mode

14 views
Skip to first unread message

fffred

unread,
Jun 17, 2013, 3:00:08 PM6/17/13
to blacktree-...@googlegroups.com
In a previous topic, I asked about how to create a three-panes applescript action.

Now, how do I force the third pane to be automatically starting in text mode (where the user can enter plain text) ?

I have the following in the applescript:

    on get indirect types
       
return {"NSStringPboardType"}
   
end get indirect types

which I thought should be forcing the text mode. But it does not.
I want to use that in a trigger where the third pane is selected by default and is in text mode.

Thanks for your help.


Patrick Robertson

unread,
Jun 18, 2013, 7:16:00 AM6/18/13
to blacktree-...@googlegroups.com
Unfortunately this isn't' possible right now. Your best bet is to get a blank third pane (by returning some unknown type, like:

return {"QSUnknownType"}

and then enter text mode.
It's on my list of todos to make 'text mode' more easily accessible, but I'm not sure when.

--
You received this message because you are subscribed to the Google Groups "Quicksilver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blacktree-quicks...@googlegroups.com.
To post to this group, send email to blacktree-...@googlegroups.com.
Visit this group at http://groups.google.com/group/blacktree-quicksilver.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Rob McBroom

unread,
Jun 18, 2013, 8:38:27 AM6/18/13
to blacktree-...@googlegroups.com
On Tue Jun 18 2013 at 07:16:00, Patrick Robertson wrote:

Unfortunately this isn't' possible right now.

Are you sure you’re not over-thinking this based on your new fancy changes that I don’t understand? :-)

I have a trigger that calls up an AppleScript and immediately goes to text mode in the third pane. It predates the “get indirect types” stuff. The script is in ~Library/Scripts/ and is really simple:

using terms from application "Quicksilver"
on process text theText
set logEntry to the quoted form of theText
do shell script "/Users/rob/bin/tlog " & logEntry
end process text
end using terms from

I most likely had to hit ⌘X to clear the third pane when creating the trigger.

-- 
Rob McBroom
<http://www.skurfer.com/>

Patrick Robertson

unread,
Jun 18, 2013, 10:05:34 AM6/18/13
to blacktree-...@googlegroups.com
I thought the OP was asking about 3 pane AppleScripts (AppleScript actions that you pull up in the 2nd pane), not triggers.

Maybe try following Rob's steps, and if they don't work then fall back to what I said :)

Frédéric Perez

unread,
Jun 18, 2013, 8:04:34 PM6/18/13
to blacktree-...@googlegroups.com
I indeed want to use the script in a trigger which has an empty third pane where I can put some text.

I don't understand really Rob's technique. Is the script in the first pane? Then how do you get a third pane available at all?

For now I'm using Patrick's technique.

Thanks

Rob McBroom

unread,
Jun 19, 2013, 7:36:45 AM6/19/13
to blacktree-...@googlegroups.com
On Tue Jun 18 2013 at 20:04:34, Frédéric Perez wrote:

> I don't understand really Rob's technique. Is the script in the first pane?

Yes.

> Then how do you get a third pane available at all?

I should have mentioned that the trigger will use the “Process Text…” action (but that should be the default for a script that uses `on process text`).

That action requires text in the third pane, and since you haven’t supplied it yet, the interface will appear to ask for it.

Frédéric Perez

unread,
Jun 19, 2013, 2:30:48 PM6/19/13
to blacktree-...@googlegroups.com

I did not know the "process text ..." action. That works like a charm. Thanks
Reply all
Reply to author
Forward
0 new messages