changing filePath format from slash to colon separators
OSX 10.6 running InDesign CS5.5. Scripting using Javascript.
I'm almost finished a script to automate the ePub Export settings dialog box, but I'm having real problems setting the cover image.
epubExportPreferences.coverImageFile seems to require a colon separated absolute file path as a string. ie:
Macintosh HD:Users:*name of user*:Documents:
rather than the slash separated relative file path generated by myDocument.filePath, which returns ~/Documents/.
The cover image is always in the same folder as the InDesign file. Is there another way I can generate the file path to the InDesign document that would give me the full path? I can use theCoverFile.replace(/\//g,":") to swap out the slashes, it's the tilda I'm having issues with.
Thanks.