Apple/Mac Appending to File path?

I have the following javascript script runnning in InDesign:
if (File.fs == "Windows") {
var defaultPath = new File('\\\\server\\path\\to\\file');
} else {
var defaultPath = new File('smb://server/path/to/file');
The code works fine in Windows (the file is on a Windows shared directory), but on a Mac I get a "cannot find folder" error and claims the defaultPath variable is:
/Applications/Adobe InDesign CS5/scripts/XHTML For Digital Editions/smb:/server/path/to/file
I am confused about 2 things:
Why is it appending "/Applications/Adobe InDesign CS5/scripts/XHTML For Digital Editions/" to the path?
Why is it changing smb:// to smb:/ (one forward-slash) ?
Am I using the wrong path for Mac? Is there supposed to be something else before smb:// to identify that it is not a local path?

John,
As I stated in my first reply, using /Volumes/ did not work
I am not sure the path specified is mounted on the system. Is that required and how do you get the mount name? Is it possible to access the path without it being mounted?
I was also looking here:
http://support.apple.com/kb/HT2799
Will /Network/Servers etc work?
I am not a Mac user so I don't know much about Mac's filesystem or the file paths used. On the test machine I have used just typing in smb://server/path/to/file works in the Finder (Windows Explorer equivalent) but does not work in the code.

Similar Messages

  • Webutil for Forms 10g - Apple Mac Client - Save File Dialog Box

    I am trying to setup a button on a 10g Form to download a file from an Oracle 10g database. The button uses Webutil package and the client_get_file_name function to ask for a file name and directory to place the file via file transfer from the database.
    Using any Windows client, when you press the button the form brings up a Dialog box for the file name. Everything works fine in Windows.
    But when I use a Apple Mac client, I get this message when I click on the button:
    “oracle.forms.webutil.file.FileFunctions bean not found. WEBUTIL_FILE.FILE_SELECTION_DIALOG_INT will not work.”
    I can only assume this maybe because the MAC doesn't use the DLL files that are associated with Webutil, like jacob.dll, etc. ???
    Does anybody know of how to get a dialog box to appear on a Mac client from Forms 10g?

    The Windows java console says:
    RegisterWebUtil - Load WebUtil Version 10.1.2.0
    Loaded image:..
    proxyHost=null
    proxyPort=null
    connectMode=HTTP,native
    Forms Applet version 10.1.2.0
    When I checked the Mac's java console, I don't get the "RegisterWebUtil" I get:
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 10.1.2.0
    Then I get the error messages below..
    What might cause those?
    java.lang.ClassNotFoundException: oracle.forms.webutil.clientInfo.GetClientInfo
         at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:179)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
         at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:119)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:164)
         at oracle.forms.handler.UICommon.instantiate(Unknown Source)
         at oracle.forms.handler.UICommon.onCreate(Unknown Source)
         at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
         at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.processEventEnd(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Component.java:4068)
         at java.awt.Container.dispatchEventImpl(Container.java:2068)
         at java.awt.Component.dispatchEvent(Component.java:3903)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
         at java.awt.Container.dispatchEventImpl(Container.java:2054)
         at java.awt.Component.dispatchEvent(Component.java:3903)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    and
    java.lang.ClassNotFoundException: oracle.forms.webutil.fileTransfer.FileTransfer
         at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:179)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
         at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:119)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:164)
         at oracle.forms.handler.UICommon.instantiate(Unknown Source)
         at oracle.forms.handler.UICommon.onCreate(Unknown Source)
         at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
         at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.processEventEnd(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Component.java:4068)
         at java.awt.Container.dispatchEventImpl(Container.java:2068)
         at java.awt.Component.dispatchEvent(Component.java:3903)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
         at java.awt.Container.dispatchEventImpl(Container.java:2054)
         at java.awt.Component.dispatchEvent(Component.java:3903)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

  • I have accidentally deleted off my Mac a preferences file for Adobe photoshop and now the program cannot initialize. I have talked to Apple and then say that if Adobe can isolate the file they can help me restore it from my time machine. How do I isolate

    I have accidentally deleted off my Mac a preferences file for Adobe photoshop and now the program cannot initialize. I have talked to Apple and then say that if Adobe can isolate the file they can help me restore it from my time machine. How do I isolate the file ?

    Do you have the path to this file and name of this file?

  • What is the file path in Mac 10.5

    Where does Adobe Media Player store it's files ( video ) in Mac OS 10.5?
    When you play a video over the internet, does Media Player download and store the video automatically?
    I think the app is good, but I do not want 32G of downloaded videos that I can not find and purge.
    Thanks,
    Ed

    But also, a string containing a file path isn't a file object which is what ImportOptions requires. For example:
    var myFile = new File("string showing my file path");
    var myImportOptions = new ImportOptions(myFile);

  • Win vs. Mac File Paths

    I have a script that Peter Kahrel helped me with (actually he pretty much wrote the whole thing). The script saves out each page of an Indesign doc as jpeg. It also takes the text from a text box tagged "jobnumber" and inserts it into the name of the saved jpeg.
    It works great on the Mac. When I move it over to Windows it inserts a weird character before and after the "jobnumber".
    On the Mac I can take the folder name which is a variable called 'path' and insert that into the filename as well but it doesn't work on Windows. Does anyone know what the differences are between Mac and Win paths in JS? I tried a few things to no avail.
    Here's the script:
    ==========================================
    var path = Folder.selectDialog ("Choose a Folder")
    app.jpegExportPreferences.resolution = 72;
    app.jpegExportPreferences.jpegExportRange = ExportRangeOrAllPages.exportRange;
    app.activeDocument.sections.everyItem().includeSectionPrefix = false;
    //path = app.activeDocument.filePath + '/';
    p = app.activeDocument.pages.everyItem().getElements();
    for (i = 0; i < p.length; i++)
    jpg_name = p[i].textFrames.item ('jobnumber').contents + '.jpg';
    app.jpegExportPreferences.pageString = p[i].name;
    app.activeDocument.exportFile (ExportFormat.jpg, File (path + "/" + jpg_name));
    ===========================================
    As always, Thanks a million,
    Randy

    I forgot, here's a screenshot:
    http://reallyrandy.com/misc/screenshot2.jpg

  • File Path for Saved Mac Mail

    What is the file path in OS X Yosemite to locate my saved "On My Mac" emails from the Mac Mail Application?  I am trying to recover them from Time Machine as I had to reinstall Yosemite due to a software issue.  I tried using the search bar with no luck.  Any help would be greatly appreciated.  Thanks.

    You do not say if you have just media on the external or if it is the whole library.  Wireless drives can be a problem.  If they go to sleep or for some reason are not up and fully awake/mounted when you start iTunes, iTunes will revert back to its default library location on the internal drive.  Switching on the drive after starting iTunes won't get iTunes to have another look for hte drive -- you have to restart iTunes.
    I hope you are not storing your media on the same drive you use for backup.  What will you do when one day the airport drive unexpectedly fails?

  • Invalid File Path Names in Mac OS X

    Hello,
    I am trying to create a Javascript in Mac OS X 10.4.11, however I am having some trouble with what characters are valid in file path names in Mac OS X. Does anybody know where I can get a list of invalid characters that cannot be used in a file name?
    Thanks,
    james

    Any character other than a colon can be used in the name, but additional characters and names may be handled differently if you are interacting with the UNIX shell in the script.
    (30221)

  • File path problems between mac and PC

    hi
    I'm having some issues with file paths, done a lot of searching online, here and on creative cow and no answers to be found (same question asked a few times though).
    I'm working on projects on a MAC and then collecting files (project only) to a watch folder on a PC for rendering.
    Most of the really big files (.R3D) are located locally on the PC but a few files are on a server.
    I can work on them fine on my Mac but when the project comes across to the PC it can find the files located on one of its drives (the same drive as the project source folder) but loses the filepath to the server and to the other internal drive as well.
    I have to open the project on the PC and repoint to the missing footage and then save which is a real pain in the #@$% and kind of defeats the purpose of the distributed rendering.
    how can I set absolute paths for the PCs from my MAC ????
    cheers../daniel

    Hey, sorry Mylenium, but this statement is not true. I was almost convinced to give up after reading this, but I managed to make a working conversion tool shortly after.
    This is the method in After Effects, I am pretty sure that it can work in the rest of the adobe suite as well.
    All you need to do to get the paths to update to windows format is to:
    1. Select "Save as xml" and save an .aepx.
    2. Open the .aepx in text edit.
    3. Perform a find for "/Volumes" and replace with "//<MountPointOnThePC>" (for example I have the drive as a network drive on the pc so I swap the <MountPointOnThePC> to the name of my mac as that is the path on the pc machine)
    4. Perform another find for "MacPOSIX" and replace with "Win"
    5. Save your file and you will be able to open in on a pc with all the files online.
    Disclaimer, I built this to work on my set up using a mac server and a pc render farm for after effects. Please back up your projects before opening them and editing them.
    Hope this helps anyone else trying to do the same.

  • I installed Quicken for Mac.  I can't find the files to import.  Apple imported the Quicken files when I bought the Mac

    I have an IMac.  The apple store exported my files from my pc to Mac.  I installed Quicken for Mac.  I cannot find the correct files to import into Qucken.  I foound a foed saying Quicken back up but they don not have the correct extention.  Also  I added an external hard drive and now window comes up to baxk up files.

    Which version of Quicken are you trying to install?

  • We have a newish apple mac and this morning all our files have vanished - all photo's, vidoes, music etc.  How can we get it back?  Thanks

    We have a newish apple mac and this morning all our files have vanished - all photo's, vidoes, music etc.  How can we get it back?  Thanks

    First of all, look in the garbage. It's easy to move a folder there without knowing it.
    Second, do a Spotlight Search (Cmd-Space), and search for a file you know should be there. If you find the file, there's a good chance that the other files you're looking for are there, too.
    If you're in kind of a crisis mode, coming up with pat advice probably isn't a good policy - but I suggest investing in a backup drive in case anything goes wrong. A program like Time Machine can be a life saver.
    Post with your results!

  • Does anyone know the sys file path to Apple Mail draft-emails folder?

    Does anyone know the system file path to Apple Mail draft-emails folder?
    I want to stuff a bunch of files into that folder and have them appear in Apple Mail.
    Thanks

    I think the problem is the fact that the emails are on a PPC G5 and in a completely different format that your main iMac (you're on Lion?). There is even a problem between SL and Lion; I just spent hours dragging individual mailboxes from a Lion machine to an SL machine. They wound up in the Import section. And, I just tried it: after you manually put the mailboxes in the appropriate spot and you've rebuilt each mailbox once it appears in Mail, I was able to drag an email from an Import mailbox to my Inbox. But, as I said that was between SL and Lion; don't know if that would work with 10.4 (?) and Lion.

  • Apple Mac Pro online work PDF damage, cant recongnize file??

    Hi Everyone, I recently brought a Apple Mac Pro for work, i do a lot of documentation online, i can't seem to open any documents to edit, i tried downloading Adobe Reader, I have been constantly searching for solutions and i'm pulling my hair out. i'm not the best and extremely new to the Mac pro world but, can anyone please assist??

    http://www.macworld.com/article/2045686/editing-and-annotating-pdf-files-with-pr eview.html
    http://lifehacker.com/5841747/the-best-pdf-viewereditor-for-mac
    http://www.wikihow.com/Create-Pdf-on-Mac-in-6-Different-Ways

  • We are buying a Mac, will the Apple Store transfer our files from the PC to the new Mac? Also, will the Apple store install Microsoft Office when we purchase it?

    We are buying a Mac.
    1- Will the Apple Store transfer the files from the PC to the Mac?
    2- Will the Apple Store install Microsoft knowing we have to purchase it first.

    Will the Apple Store transfer the files from the PC to the Mac? Yes
    Will the Apple Store install Microsoft Office for Mac 2011? Yes

  • Common URL format for sharing file paths between Mac and Windows?

    Hi -
    I have to integrate several Macs into a Windows environment. We need to be able to copy and paste file paths to share between all machines. Is there a common URL format that can be used between the platforms?
    On Windows, I have:
    \\server\share\file
    On the Mac:
    smb://server/share/file
    Thank you for your help,
    Steve

    On Windows you have what is known as a "UNC".
    On the Mac, you have a "URL". It starts with the protocol to use "smb" then gives the path to the item using standard conventions.
    UNC is Microsoft mainly.
    The only way I know for Windows to use a URL is with an application like a web browser or ftp client.
    On the Mac, you can use UNCs but they must be modified as follows.
    In Terminal:
    smbclient \\\\servername\\sharename\\filename -U username
    And enter a password if prompted.
    Notice that you must double up the slashes. This is due to how UNIX shells treat the backslash.
    You will connect to the share, but it will only be in Terminal.

  • Dreamweaver CS6 - MAC: How do I view / display a file path in code view?

    I work with complex applications / sites that use cross-browser ajax calls and different configurations. We use two different prod servers which flip/flop for active while the other is a backup. I need the ability to see (from a root level) exactly which file I'm looking at. This seems like a no-brainer, but I have had no luck finding anything related to it. Please help.

    The first item in the "Coding Toolbar" (the left hand side of the code window) that looks like a file icon with a little black down arrow will show you the file path.
    I know it's not great for your purpose. It should be visible all the time (perhaps on the bottom of the window that is virtually empty.) You should request this to Adobe.
    Kenneth Kawamoto
    http://www.materiaprima.co.uk/

Maybe you are looking for

  • Placing Table in a Header or Footer

    I am working on XSL version 1.1 to generate word doc for some text. I need to place a table in the Header and Footer of this document but I'm not able to achieve this by placing <fo:table> inside <fo:static-content flow-name="xsl-region-after"> of th

  • Why can't I get my Yahoo mail to work on my recently upgraded Mozilla on my Mac OS X 10.7.4?

    I just upgraded my Mozilla Firefox. My yahoo mail loads but opening an email takes forever and I cannot reply, forward, or delete any mail items. My yahoo account works without a problem on my iphone so I know it is a problem with the computer/mail i

  • Unable to open pdf

    unable to open the pdf error An unrecognized token 'BT70.85' was found. DATA: i_p0000 TYPE TABLE OF p0000 WITH HEADER LINE,       "ITab P0000         i_p0001 TYPE TABLE OF p0001 WITH HEADER LINE.       "ITab P0001   DATA : tline LIKE tline OCCURS 0 W

  • Everytime iTunes starts with "Determining Gapless Playback Information"!?

    Hi, for 7 weeks now everytime I start iTunes (12.1.0.71) it keeps saying "Determining Gapless Playback Information" and does it with the last 189 mp3-files I imported. The files are always the same, it does not happen to any other, older mp3-files an

  • Save member to file on Mac - w/Shockwave?

    I was using DirectXtras on the PC and Mac, and now I need a Shockwave safe way to save a cast member to a file on Macs - I'm not finding any that work in Shockave - anyone?