Mac <>- Win path traps - need help

Hello world

I hope that someone with Mac advise me how to handle the problem...

I push paths to the array from different sources (UI, doc links, external list, etc.). The goal is to manage this on Mac and Windows platform.

Unfortunately, I can't test using MacOS (lack of material nearby). The problem is of good encoding for 'special characters' as 'slash', 'backslash', 'question mark' etc - who - as far as I know - are acceptable while naming the files/folders in Mac OS.

Lets say the file is a real file on Mac. I've stored File.fsName for var and var mPath trying to eval in the file of this more later-> on the sons of (mPath) lead me to the "undefined" path cause slash IE (or backslash - I'm not sure) is replaced 'on the fly' by two points.

Is a solution to use File.absoluteURI to store a coding appropriate in this case or is - this much more complex question?

Could someone with experience advice me which way to go?

Jarek

Hi Jarek,

In my humble OPINION, File.absoluteURI is the way to go since this encoding scheme is cross-OS.

Global functions encodeURI and decodeURI , then you can do what you need to use display etc.

@+

Marc

Tags: InDesign

Similar Questions

  • New/updated nine HP Desktop Win 7 Pro - need help or advice

    Hello...

    Honestly, I do this for a dear friend and I would like to keep it this way!  Its xp fell under the "ms tech phone call" scam, and while I don't know if it'll never work, once again, she bought the following:

    HP Compaq 6000 Pro Small Form Factor (tour info)

    System - Dell: Intel Core 2Duo E7500 2.93: 4gm memory ram: 64-bit (info via prop comp)

    This is a refurbished pc.  I activate with the product key provided.  Set a restore point; installed hp photosmart more printer via the cd and google Canary worm 52.0.2715.0; There is a Mediatek RT2870 LAN card 12/04/16 1.5.38.101 WiFi adapter

    Windows Defender > used 3 hours "search for updates" after I downloaded from ms site, definitions, I think. From my own experience some years back I remember (with great pain) this problem.

    Wanting a good place to start "solid":

    • uninstalled MS security essentials
    • windows update is the KB976902 11/20/2010
    • directly ran here!

    My Question: What do I do then?  Download all updates for win 7, I guess and then Defender.  I'm sure she'll switch to windows 10 to 99%, so I should make a bee line it?  Given that I'll be 'teaching' his 10 windows and it comes from xp I thought it would be easier to dip in the first 7...

    My excuse for the length, it's my first post to the community after years of reading others.   Instead of recent viruses, including my edge get hi-jacked little time after my upgrade to win 10, I want to continue with the installation in the "right direction."

    Thank you very much!

    Hi Emma,

    Thanks for posting your query on the Microsoft Community.

    According to the description, it seems that you have properly installed Windows 7 on your computer, but facing problem in the installation of updates. Correct me if I'm wrong. This problem may occur if one or more of the following conditions are met:

    1. The Windows Update database is damaged.
    2. Antivirus software is configured to scan the folder % Windir%\SoftwareDistribution.
    3. Service (BITS) Background Intelligent Transfer Service does not receive a content link header.
    4. A required system file is incorrectly registered.

    If it helps, try the methods and check them off below.

    Method 1

    If I'm wrong, you tried not Troubleshooting Windows Update below to solve your problem and if this isn't the same link, then try to run the troubleshooter.

    Open the Windows Update troubleshooting tool

    http://Windows.Microsoft.com/en-in/Windows7/open-the-Windows-Update-Troubleshooter

    Method 2

    Step 1

    If the problem persists I suggest to reset the Windows Update components and for this, try to run the fixit described in the following article. If you already tried the fixit even before that I ask of you rerun the fixit.

    How to reset the Windows Update components?

    http://support.Microsoft.com/kb/971058/en-us#LetMeFixItMyselfAlways

    Step 2

    Try to follow the steps in the Microsoft Article and check if it helps.

    Problems with installing updates

    http://Windows.Microsoft.com/en-us/Windows/troubleshoot-problems-installing-updates#1TC=Windows-7

    I hope this helps. If the problem still persists, post back with the current state of your computer and the result of the proposed suggestion, we will be happy to help you.

    Kind regards

  • Download Photoshop CS5 12.0 WIN PL (65048667) need help!

    Hey, got a problem I can't find anywhere to download Photoshop CS5 12.0 WIN PL (65048667). I have the serial number confirmed and printed on paper. I bought CS5 4 years, but who wants to use it. Didn't spend so much money to do and now I can't use it when I had problems with the computer. Hopefully I'll get the help of the Adobe people. Peace!

    If you follow the 7 steps you can directly download a free trial here: http://prodesigntools.com/all-adobe-cs5-direct-download-links.html

    and activate it with your serial number.

    If you have a problem from the download, you follow the 7 steps, or your browser does not accept cookies.

    the most common problem is caused by failing to meticulously follow the steps 1, 2, and/or 3 (which adds a cookie to your system, allowing you to download the correct version of the adobe.com site).

    failure to obtain this cookie translates into an error page displayed after clicking on a link on prodesigntools.com or initiates the download of an incorrect (e.g., current) version.

  • I have Win 8.1, need help to install the first elements 11

    I reformatted and reinstalled 8.1 and lost my copy of the premier 11 elements. I downloaded the installer, but it won't work because it is missing a file to archive.  I need all of the necessary files in one folder. How do I do that?

    Please, use this link to download.

    https://helpx.Adobe.com/premiere-elements/KB/premiere-elements-downloads.html

    Concerning

    Stéphane

  • Big problem with the variable PATH approx. need help!

    Hello
    I had a problem with the PATH environment variable. Instead of updating client Informatica & server paths PATH env variable, I created new PATH env variable and to establish client & server paths and saved. When I revisited this PATH Env variable, I was shocked to see the content of the PATH variable. I have to set back the old values like windows OS, DB etc paths paths. Could someone tell me how to make or do I have to reinstall the OS, DB, etc. Am on WIndows server 2003.

    I saved my PATH before configuring Informatica. Here's what I had:

    Path = C:\oracle\10gclient\bin; C:\OracleBI\server\Bin; C:\OracleBI\web\bin; C:\OracleBI\web\catalogmanager; C:\OracleBI\SQLAnywhere; C:\OracleBAM\ClientForBAM\bin;%SystemRoot%\System32;%SystemRoot%;%SystemRoot%\System32\Wbem; C:\OracleBAM\BAM; C:\Informatica\PowerCenter8.1.1\client\bin

    The critical components of the OS dependent PATH is % SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem.

  • I need help I want to retrieve my mac pro book

    I need help I want to retrieve my mac pro book and now I can not bcz Yosimoto os is not avilabe what can do?

    < object edited by host >

    If you have installed Yosemite by downloading it from the App Store, it will be in your App Store purchases tab. If Yosemite is currently installed, when you start in the recovery Partition (command - R on a restart), you can reinstall Yosemite.  In the recovery Partition, you can also restore Time machine and disk utility is available.

  • Updated at El Capitan and my mac doesn't see my camera Canon (connected via USB). Need help. Cannot import images.

    Updated at El Capitan and my mac doesn't see my camera Canon (connected via USB). Need help. Cannot import images.

    Try using using the Image Capture (in the Applications folder)?

  • Speed/performance of my mac mini (mid-2010) is very slow. Need help, consolidate the files, software updates, etc. in order to improve the speed and performance.

    My mac mini (mid-2010) speed/performance is very slow - think of it as a result of letting my kids do "whatever" about it in recent years.  Need help, consolidate the files, software updates, etc. in order to improve the speed and performance.  You will also need to get data out of old PowerBook G4.

    < object edited by host >

    We are users like you.  Search locally by using something like Yelp or similar

    http://www.Yelp.com/search?find_desc=Apple+repair & find_loc = Chicago, + IT & start = 0 & ortby = rating s

    or read a few links which may be relevant on this forum about the slow mac mini

    http://BFY.tw/5C63

  • I have adware on my mac and I need help to fix it!

    I have adware on my mac and I need help to fix it!

    Try Malwarebytes for Mac:

    https://www.Malwarebytes.org/Mac-download/

    Is fast, effective and safe.

    Do not be mislead by one who can say that it is an anti-malware application.  It would be a false increased.

    Ciao.

  • I need help to install adobe flash for my G5 mac

    I need help to install adobe flash for my MAC OS X 10.4.11, I visited site and its telling me to upgrade my adobe flash, I really need help.

    Flash Player should be installed ONLY from the Adobe Web site.

    Here you can check which version of Flash player you have actually installed: http://kb2.adobe.com/cps/155/tn_15507.html

    You can check here: http://www.adobe.com/products/flash/about/ to see what version you need to install to your Mac and OS. You must first uninstall any old version of Flash Player using uninstaller from here (make sure you use the right pair!):

    http://kb2.Adobe.com/CPS/909/cpsid_90906.html

    and also that you follow the instructions carefully, as all applications (including Safari) closed first before installing. It is strongly recommended that you perform a permissions repair after installing anything from Adobe.

    After installation, restart your Mac and restart Safari, then in Safari/security preferences enable "enable Plugins".

  • Need help to install windows 7 Home premium on my mac.

    Ideas:

    • Need help to install Windows 7 Home premium on my Mac
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Installation of Win7 on a Mac has nothing to do with Windows Update. Please repost your question here rather: http://social.answers.microsoft.com/Forums/en-US/w7install/threads ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Need help to install on win xp SP2, hp 8300 elite raid drivers?

    I spent to win 7 on HP elite 8300 for win xp sp2. I did this because I had to install a specific software that only works on Windows xp sp2. And now I have the problem with the raid drivers. I need help how to install them, and I don't know if I downloaded the right one.

    Maybe the only solution is to insert sort this driver in the instalation of win xp cd because I don't have floppy drive.

    HP elite 8300

    SERIES:[personal information]

    PRODCT NO.: B0F31EA #AKQ

    Hello:

    Please read the info on the link below on how to integrate the SATA/RAID drivers.  Read the Intel section and read the document about how to integrate all the drivers.

    http://h30434.www3.HP.com/T5/notebook-operating-systems-e-g-Windows-8-and-software/SATA-drivers-for-XP-solution-on-0x0000007B-BSOD/m-p/114120#M17758

    The drivers from the link below allows you to integrate. Second listed file is what you need for XP 32 bit.

    http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&DwnldID=21730&ProdId=2101&lang=eng&OSVersion=Windows%20XP%20 * & DownloadType=.

    The real driver you need is the controller RAID Intel® Express Chipset SATA Desktop/Workstation/Server. But all by wake.

  • Windows 8.1 annihilated all win, Pro 7. CANCEL the need help!

    Reference Dell Inspiration 3847

    First, I created a new partition and thought that when I pick up the Windows 8.1 since the disc that came with the new computer, it would be a side-by-side, double installation along the side of the factory, preinstalled, Windows 7 Pro. EVIL!

    What has happened is that it exceeds written Win. 7 pro. and remove all it's files and preloaded apps.
    I sent to Dell to see if I can return to the configuration factory state condition with the Win 7 Pro. and applications pre installed. but have not yet received a response.
    I, ve tried restoring to factory State, but she is instructing me to reinstall Win. 8.1 from the disk.
    NEED HELP!
    Thanks Randy

    You should have the recovery with Dell backup and restore support before making a dual boot. Even if he succeeded he would have hindered your ability to restore to the original image.

    You cannot reinstall Windows 7 because Microsoft has removed all downloads of Digital River and replace them with a non-functional tool that licenses OEM Dell blocks and you cannot create a support of recovery, your only choice is to call Technical Support Dell or Windows 8.1 installs successfully.

  • HP Deskjet 3050 has All - in - One J610 series is not compatible with mac os x 10.8 mountain lion. need help.

    Hi I have a HP Deskjet 3050 all-in-One J610 Series a as indicated in the title, and I have the operating system Mac OS x 10.8 Mountain Lion. I need help to get or install the software hp for printing wireless setup in my dorm. Any help is very appreciated.

    Hello

    I'm not not clear with your exact printer model, it is the printer Deskjet 3050 a (J611) or model 3050 (J610) ?

    For the Deskjet 3050 J610- a complete software not available at this time.

    As there is no comprehensive software available for Mountain Lion, you will need to set up a temporary ad hoc connection and then use the EWS printer to connect the printer to your router.

    • Press the button on the control panel wireless to display the options menu on the screen of the printer wireless.
    • Select on the screen of the printer's wireless settings, then Netowrk default settings.
    • Under the same wireless and select Radio wireless and make sure to put it on.
    • From your Mac, click the WiFi icon and then click on join another network.
    • Click view networks, select the printer SSID, it will include 3050 or J610 in its name, then click on join.
    • Allow 2-3 minutes to establish the connection.
    • Open Safari and click on the favorite icon ().
    • Hello-click and then click on the name of the printer, the EWS page appears.
    • Enter the network tab.
    • Less wireless (802.11) click Wireless Setup Wizard and then click Start the wizard and follow the steps on the screen to configure the wireless connection.
      Note: If you must provide the type of security for your wireless network, you can click the WiFi icon, click Network Preferences and select the Wi - Fi network. Click Advanced, and you will find the type of security for your network in the Wi - Fi tab.
    • Once the wizard of wireless via the integrated Web server configuration is complete, click the Wi - Fi of your Mac and you connect to your router again.

    Finally, go to System Preferences > print & Scan and add the printer. confirm all calls to get the drivers from Apple servers

    For the Deskjet 3050 has (J611), be sure to connect the printer with a USB port and follow the installation below:
    http://h10025.www1.HP.com/ewfrf/wc/softwareDownloadIndex?softwareitem=Al-107372-1&cc=us&DLC=en&LC=en&OS=219&product=5061082&sw_lang=

    Please let me know of any problems,

    Shlomi

  • I need help to use my gateway as a monitor for mini mac 2011 2012

    OT: installation.

    I need help to use my gateway as a monitor for mini mac 2011 2012

    You should ask the community of Apple Mac

    Community: Mini Mac | Apple support communities

    Apple Mini DisplayPort to VGA adapter. Use: Use the adapter Mini DisplayPort to VGA to connect your Mac to a standard analog monitor, projector, or LCD that uses a VGA Connector or a cable. Compatible with: MacBook Pro (retina, 13-inch, late 2012) and later versions. November 11, 2015

Maybe you are looking for