Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
What is the Dropbox absolute path?
-
I often want to refer to a CSS file using the HTML "link href" but want to avoid relative paths.
Often my files are deep in a tree structure. Rather than remembering how may levels I'm at (i.e. ../../../etc.) I want to create a template in Editorial that will simply insert an absolute Dropbox path. For example:
<link href="dropbox_path/zFonts/myfont.css">
Does anyone know how to use an absolute dropbox path?
Thanks in advance.
...dave
-
I don't think there's a useful way to write a path relative to the Dropbox root. The full path of the Dropbox folder is
/private/var/mobile/Containers/Data/Application/(random UUID)/Library/Application Support/Dropbox
, and I don't think that's any better than using a few..
s. -
You could try going all the way to Dropbox and using the shared link to your file. Substitute "dl' for 'www' and get
https://dl.dropbox.com/s/(YourEncodedDropboxAccountInfo)/myfont.css?dl=0
. This can be inserted into your<link href>
statement. The Workflow app can help you get the 'www' version of the link for you if you're strictly iOS based or a right-click on the Dropbox file on a Mac can also get you the shared link (I'm assuming a right-click also works on Windows).There may be an Editorial workflow that can get this for you. There is one called 'Insert Dropbox Image' that uses the Workflow app to choose an image, obtain the Dropbox link, substitute 'dl' for 'www' and inserts the modified link into your document. You might be able to modify this workflow to suit your needs.