Submitted by ThomR on 2011/02/07 20:30
It doesn't seem like the HTML pane (at least) can parse filepaths which include environment variables such as %userprofile%... I consistently get the error "File not found: %Userprofile%\Filename.pdf. Could not load content." Is this indeed the case? Is it possible to get this to work? I have my DB synced across two different computers, and I have to manually reload these pdfs every time I want to browse them.

Comments

The case, rather, seems to be that if I point Infoqube along such a path (using a shortcut, for instance), it will save only the full path of the target file in ItemHTMLFile, leading to conflict when I work on the other computer. Can anyone understand what I'm saying, or even better, think of a workaround for this? :)

Armando

2011/02/09 22:00

In reply to by ThomR

Hi Thom, I don't have any problems any problems with environment vaiables. That said, I don't use them a lot in the HTML pane. Could you give various examples of environment variables (not working) used as links in the HTML pane ? Thanks [Edit : strangely, it seems to work but only partially. I always get the dialog asking me which application I should use such or such file OR sometimes, with other environment variables, I get the error message you described in your first post. I wonder what the problem is.]

ThomR

2011/02/10 10:31

In reply to by Armando

Hi Armando,
It's nice to hear you've at least partially confirmed my experience. If you'll indulge some further detail, I'm trying to connect IQ items with particular pdfs which are synced across two different computers through Zotero (a reference management Firefox plugin), while my SNDB is synced through Dropbox, which isn't big enough for all these pdfs. The fallout is that the paths to the pdfs are different: not only the username, but also the name of the Firefox profile where Zotero stores its files. Thus far I've been browsing the pdfs in Acrobat and taking notes in Infoqube, but it would be REALLY SUPER if I could browse the pdfs in IQ itself. I set up a system and user environment variable %Zotero% on both computers, pointing to the embedded storage folder, but I can't get Infoqube to work with it (and I realize the issue here might also be Internet Explorer... I confess I'm not exactly clear on how the HTML pane functions). I've tried two routes. 1: typing the %Zotero%\path directly into the ItemHTMLFile field -- the HTML pane doesn't seem to be able to load this path. 2: creating a shortcut in my Dropboxed base folder whose target is described by the %Zotero%\path, and which 'starts in' some directory common to both computers. Clicking on this shortcut opens the file properly on both computers, which is a start, but if I 'Open' this shortcut in IQ's HTML pane, it isn't the path to the shortcut which is saved in ItemHTMLFile, but the shortcut's target path, which results in conflict. I don't know what my next move might be.
 
Thanks,
~t

ThomR

2011/02/10 11:46

In reply to by Armando

This is an example of an entry that I would want in ItemHTMLFile: "%Zotero%\JST8FZHK\Burnyeat - 1976 - Plato on the Grammar of Perceiving.pdf", and just to confirm, entering this link in Internet Explorer's address bar will load the pdf in IE, and entering it in Windows Explorer will open the file in my pdf viewer, both with no probs. However, Infoqube continues to report: "File not found: %Zotero%\JST8FZHK\Burnyeat - 1976 - Plato on the Grammar of Perceiving.pdf. Could not load content."

Armando

2011/02/10 12:00

In reply to by ThomR

Ok, I redid exactly what you explained and I can confirm that it doesn't work at all. I missed the ItemHTMLfile from your first post last time, and I didn't test it properly. So there seems to be problems with 1- environment variables IN the HTML pane or in the Grid. i.e. [REPLACED "<" and ">" with ( ) as these will interpreted as HTML tags] a- in the grid : (a href=%DOC%\Divs\01-scan-Mar00.pdf)Test(/a) b- in the html pane, in the hylerink dialog : %DOC%\Divs\01-scan-Mar00.pdf. In the html pane, clicking on the link will trigger the "open with..." Dialog. Clicking on OK won't do anything. 2- environment variables in ItemHTMLFile. Triggers the error message you mentionned : "File not found: %DOC%\Divs\01-scan-Mar00.pdf. Could not load content." The only place where these seem to work is when used in the FileFullName + hyperlink in grid i.e. : (a href=[FileFullName])01-scan-Mar00.lnk(/a) (where filefullname includes the "%DOC%\Divs\01-scan-Mar00.pdf" reference, in the properties pane or whatever)

I can confirm that environment variables are not parsed anywhere in IQ. It could be added of course !
 
In the meantime, have you considered creating a common drive letter (through SUBST or some other mapping) ?
 
Also, using FF portable can help in having files in similar / same paths
 
HTH !

ThomR

2011/02/10 12:34

In reply to by Pierre_Admin

Drive letter! I hadn't thought of that, and it might be the very thing. I'll report back once I can have both computers in front of me. Thanks.

ThomR

2011/02/11 15:16

In reply to by Pierre_Admin

Thanks for the tip, Pierre: mapping Zotero's storage folder to its own drive letter works beautifully. Now back to work, me!

MANTIS
1112
Parse Environment variables in IQ (grid, HTML pane...)  New featurefeaturenew
 2011-02-13 15:43