custom open file

Please use this part to report bugs & errors, ask questions & "How to..."
Post Reply
User avatar
malcooning
Posts: 2114
Joined: 29 Mar 2006, 12:43
Location: Tel Aviv
Contact:

custom open file

Post by malcooning »

Hi,

how can I create a custom button that will open a specific file (i.e. I have a file which is a template, layers and all, and I want to open it again and again without navigating to it every time)?

Cheers
User avatar
ematecki
Site Admin
Posts: 2258
Joined: 15 Feb 2006, 14:32

Post by ematecki »

Create a button in custom panel (with "Add Action").

Create a "Type Script's Command" action in the "None" popup.

In the small popup window, type "tv_loadproject whereeveryourfileis".

Choose an icon for your button and there you go !
Quicktime is DEAD. Get over it and move on !
User avatar
malcooning
Posts: 2114
Joined: 29 Mar 2006, 12:43
Location: Tel Aviv
Contact:

Post by malcooning »

cheers ematecki,
but it's not working for me. The command line seem not to create any response. I tried putting the full path including the name of the file, and I've tried with just the path (hoping it would bring up a file requester). but none seem to do it.
User avatar
ematecki
Site Admin
Posts: 2258
Joined: 15 Feb 2006, 14:32

Post by ematecki »

Hi,

you must put the file name between double quotes (") if it contains spaces.
You should preferably use the full path name, with a drive letter.
While TVPA does its best to find a file without path, it can't check on the whole drive, that would take too much time, it will just check in a few directories "know to him".

Don't put quotes around the whole command.
It should read :

tv_loadproject "C:/the/path/to/the/file.tvp"

Oh, one last thing, use '/' instead of '\', that's much friendlier to scripting
languages which uses '\' to 'escape' some special characters.

EM.
Quicktime is DEAD. Get over it and move on !
User avatar
malcooning
Posts: 2114
Joined: 29 Mar 2006, 12:43
Location: Tel Aviv
Contact:

Post by malcooning »

Works perfect!
Thanks for the elaborate reply, Eric.

A.
Post Reply