pulling my hair out over LaunchApplicationPlugin and relative links

65 views
Skip to first unread message

Dave Parker

unread,
Jan 7, 2010, 3:25:23 PM1/7/10
to TiddlyWiki
I've read several messages and versions of the LaunchApplicationPlugin
that claimed that it supports relative links, but I can not get it
working. I'm trying to launch image files for editing (i.e. defaulted
to open in mspaint.exe), so I don't want to just use [[edit|
filename.jpg]] which opens the image in the browser.

The image file is in the same folder as the TW file. Here's what I've
tried so far to no avail:

<<LaunchApplication "edit file" "edit file" "file:///../picture.jpg">>
<<LaunchApplication "edit file" "edit file" "file:///../TWfolder/
picture.jpg">>
<<LaunchApplication "edit file" "edit file" "file:///../
TWsParentFolder/TWfolder/picture.jpg">>
<<LaunchApplication "edit file" "edit file" "../picture.jpg">>
<<LaunchApplication "edit file" "edit file" "../TWfolder/
picture.jpg">>
<<LaunchApplication "edit file" "edit file" "../TWsParentFolder/
TWfolder/picture.jpg">>
<<LaunchApplication "edit file" "edit file" "picture.jpg">>
<<LaunchApplication "edit file" "edit file" "/picture.jpg">>
<<LaunchApplication "edit file" "edit file" "TWfolder/picture.jpg">>
<<LaunchApplication "edit file" "edit file" "/TWfolder/picture.jpg">>
<<LaunchApplication "edit file" "edit file" "TWsParentFolder/TWfolder/
picture.jpg">>
<<LaunchApplication "edit file" "edit file" "/TWsParentFolder/TWfolder/
picture.jpg">>

My TW version is 2.5, the LaunchApplicationsPlugin version is 1.4.0
from here

http://twhelp.tiddlyspot.com/#[[Launch%20Applications%20Plugin]]

and my browser is Firefox 3.5.7 on Win7

What am I doing wrong?
Help me, Obi-Wan Kenobi - you're my only hope!

PMario

unread,
Jan 7, 2010, 4:50:44 PM1/7/10
to TiddlyWiki
hi


On Jan 7, 9:25 pm, Dave Parker <cedar...@telus.net> wrote:
> I've read several messages and versions of the LaunchApplicationPlugin

== snip


> <<LaunchApplication "edit file" "edit file" "file:///../TWfolder/
> picture.jpg">>

<<LaunchApp "buttonLabel" "tooltip" "application" ["arguments"...]>>
<<macroName "edit file" "edit file" "^^ooops^^" "file:///...">>

I think you missed the application name. And I don't think that the
plugin is able to get the right program out of the jpg file name.

regards Mario

Dave Parker

unread,
Jan 7, 2010, 10:40:42 PM1/7/10
to TiddlyWiki
Well, it turns out it's probably some setting on my computer. At home
I got this to work:

<<LaunchApplication "edit file" "edit file" "picture.jpg">>
(nice and simple)

I have no idea why it wouldn't work on my other computer - maybe some
security setting I have wrong somewhere...


Anyway, thanks PMario for the feedback - I appreciate it

Dave

Lyall

unread,
Jan 11, 2010, 10:56:51 PM1/11/10
to TiddlyWiki
LaunchApplication is a prickly beast considering the differences
between IE and Firefox and the security restrictions imposed on
Javascript.

You can launch based on file type, in windows, using the 'lauch'
application (from memory).

I guess I should check the use of named parameters, it might make the
use of it less confusing !

...Lyall

Morris Gray

unread,
Jan 12, 2010, 3:28:00 AM1/12/10
to TiddlyWiki
I have these working relative although they are the applications
themselves. I'm sure I have others that call the application's data
files but I have no idea where they are.

This may help though, note the 'LaunchApplicationLink'.

<<LaunchApplicationLink "Thunderbird" "Program relative to file" "../
Programs/ThunderbirdPortable/ThunderbirdPortable.exe">> - Email

<<LaunchApplicationLink "Sunbird" "Program relative to file" "../
Programs/SunbirdPortable/SunbirdPortable.exe">> - Calendar

<<LaunchApplicationLink "Cornice" "Program relative to file" "../
Programs/CornicePortable/CornicePortable.exe">> - Images

Morris Gray
http://twhelp.tiddlyspot.com/

Anthony Muscio

unread,
Jan 12, 2010, 8:51:08 PM1/12/10
to tiddl...@googlegroups.com
In Windows XP,

The start command see Command Prompt >Start /? will use the associations of file types eg; *.jpg opens paint.

You can use this in a batch file as well, and I have created compiled batch files using "Bat to Exe Converter v1.5".

Here is some examples I use (Not relative)
<<LaunchApplication "Freemind MasterDB" "Launch Master Freemind" "file:///S:/FreeMind/Freemind.exe" "S:\Wiki\Freemind\MasterDB.mm"
<<LaunchApplication "TimePanic work" "Open Work Time Panic" "S:\TimePanic\Telstra\TelstraTP.cmd">>

I have all my portable apps on  USB (including my TiddlyWiki's. If I move them I change the S: drive mapping to get my relative references. eg; Copy to C:\DATA\MYAPP then subst S: C:\DATA\MYAPP

TonyM

If you have not found an easy way to do it with TiddlyWiki, you have missed something.
www.tiddlywiki.com



--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To post to this group, send email to tiddl...@googlegroups.com.
To unsubscribe from this group, send email to tiddlywiki+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.




Reply all
Reply to author
Forward
0 new messages