Path to the folders in MXI

Hello

I have seen that there are several chips of path in the MXI Tech Note pdf file.

Because ExtendScript offers a different set of tokens (which I use in my scripts to manage files), I'm currently trying to understand what is the intersection of these two groups (MXI and ExtendScript tokens).

My goal is to install files (say, the documentation pdf) via the extensions Manager bundled with scripts PS - so that scripts can find and open them if necessary, then.

In particular, I was interested in the user Documents folder and the folder of the user's desktop. While they are easily defined with the folder my documents and desktop in ExtendScript chips, I couldn't find any token MXI path to get there - the closest I have is $userhomefolder.

Y at - it no safe, regardless of the language (I mean: not only in the English operating systems) to set these records in a MXI? Would be $userhomefolder/Documents and $userhomefolder/Desktop do the job?

My doubt is that, for example, an Italian user installation files via ExtensionManager under his Home/Office folder will have disorders because my script Photoshop (looking real desktop) will try to locate them in the House of /Scrivania, failed.

Thanks in advance!

Davide

Hi DBarranca,

$usernhomefolder/documents and $userhomefolder / Office works in your case. It is language independent. In the file Explorer, the full name of 'Documents' or 'Office' is dependent on language, but in the file system, the paths are language independent. Thank you.

Xiaoyi

Tags: Creative Suites

Similar Questions

  • The network location of my folders in offline mode has changed while I was offline. How to re - run my offline file path to the new location so I can sync?

    The network location of my folders in offline mode has changed while I was offline. (HE moved to a new server).  How to re - run my offline file path to the new location so I can sync?

    Windows System 7.
    Hello
    Welcome to the Microsoft community forums!
    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums.
    Hope this information helps.
  • additional folder added based on the current path of the vi when compiled in executable

    I found a new problem (for me) with the 'current path of vi' work today. When I compile the source code into an executable, I get a strange response from the service.

    I expect to see 'application.exe\application.vi '.  What I see is "application.exe\folder\application.vi. It's ruining my normal routines that address automatically step of removal of additional path that is required when moving between executable files and source code. I understand that I can use the "Application Directory" function and it does not solve this problem. However, as a test, I created a separate program with only the 'path of vi current' function and it worked again normally (application.exe\application.vi). There seems to be something specific to this one application that I don't understand.

    I tried a force all recompile (ctrl-shift-run arrow) and this did not help. I created a new project with the same source, and this did not help. I recorded the source under a different file name file and created a new project for this new source file and it did not help. I was using the function of the path of the current vi twice in top level vi, then I changed to use it only once and it did not help.

    I'm running out of ideas, and it is a project big enough that I really don't want to start over. The extra folder is the path to the file source vi. Any ideas on what would cause additional file information to be inserted in the path returned by the function of the current path of the vi?

    I use LV2012

    Generally, you shouldn't care how exactly screw are stored inside the EXE. If you care, this means that your code relies on it, which is a problem. What follows is general and can be inaccurate, simply because I don't like enough to actually check OK how it is:

    1. The EXE file is basically a folder zipped with the screw and the runtime of LV simply loads and works.
    2. If you use the indicator 8.x, you get a flat structure in the EXE. This is not your case, and I would not recommend it in any case.
    3. If the flag is set to false, LV basically takes all the screws that must go into the exe (static libraries dependencies and included screws) and places them in the EXE file using the same exact folder structure as code. This allows to undress and to build paths and having the code works the same way.
    4. Code that is located in the LV folder (such as the vi.lib code) is placed in a top-level called 1abv1ew folder, so it can be found.
    5. If you need to get the path of the folder, use the app dir VI.
    6. If you need to get a path to VI, use a static reference to the VI and a property node to get its path property. It works in dev and EXE.
    7. Virtual folders are not relevant (that they are not paths). AutoFill files are linked on the disk, so they do not reflect the path, but it's not really relevant. Jeff was simply pointing out that this may reflect the path and that he does not like them.
    8. Most likely your problem (since you say that something is changing) is that you are sometimes a VI that is not in the same top-level VI folder hierarchy, which then changes the top-level folder in the EXE (I'm guessing a VI of another project?). It's pretty easy to check by going to the project files tab and see if you have screws to another folder.

    I hope this helps explain, but as I said, you should generally not care on this issue. The only good reason I can think to need to know is if the paths inside the EXE exceed the limit on the length of path of the operating system, and then you start dealing with that. Except that just use the golden rule that screws inside the EXE will have the same structure as they did before, and to put you outside the EXE should use the app dir VI.

  • multiple paths to the same file come in research

    When I search for a file, I get the multiple as paths:

    C:\Users\Bill\My Documents\... file

    and

    C:\Documents and Settings\Bill\My Documents\ drop...

    The "Documents and Settings" folder contains a shortcut arrow.  There is only one folder for each of the folders in the path starting with 'Bill', that is, they are the same file in two ways.  That is this folder shortcut to, do I need, can I get rid of him and still have my files?  Have no idea how it got there.

    This is the direct download link to the usefulness of the junction box , wait approximately 5 seconds or more for the dialog "Save file" to appear, the name of the file is Junction100.zip (622 KB).  This kind of utilities are sometimes reported as virus by AV software, as long as you know the origin of the file and understand what the utility is supposed to do you will be sure to run the file, what is mentioned on the web site of the author:

    Note that this utility has undergone some fake antivirus alerts, including Norton and McAfee. The Manager of coding point of view there is nothing much that we can do about it, it seems as if some suppliers of software antivirus today write code if the trigger-happy it signals to ANY program that makes the fundamental system changes (which this must do, or it would be of no use!) as potential malware. Especially, the best AV products don't produce any these false alerts.

    Otherwise I have no way of knowing what permissions have been changed on your machine and that I have to post a playfile SubInACL to restore the permissions... believe me, the utility from the link above is much easier to use!

    John

  • File navigation on OS x using openDlg() - why all the folders are grayed out?

    I am configuring a file and folder browsing dialog that works for the two Win/OSX and with filters to narrow the search to specific file types dialog box. I received a lot of help from another user on the forum (Matias Kiviniemi) in order to obtain the function of filter working - but now I have another problem: a little strange.

    When you browse the files under OSX, all the folders are greyed out!error.jpeg

    You can always navigate (somewhat) via the Favorites list and directory tree button at the top in the Center, but actually clicking in the records does not at all.

    I also tried saveDlg() to browse the files, but I have exactly the same problem with greyed out records. SaveDlg() is not the second parameter (the filter function) to restrict the dialogue to a specific file type - which is something that I need.

    // Utility functions for checking if the OS is Win/OSX
    function isWindows(){
        return app.systemInformation.indexOf("Operating System: Windows") >= 0
    }
    function isMac(){
        return app.systemInformation.indexOf("Operating System: Mac") >= 0
    }
    
    
    // All params below are strings
    function promptFile(dialogMessage, dialogType, extFilter, oldPath){
    // Description: Opens up a file or older dialog window for browsing (Win/OSX)
    // Returns: Absolute path (string) to the file or folder that was picked by the user
    
    
        // File
        if (dialogType == "file"){
    
    
            // Create filter function for the File.saveDlg -function
            var filter = null
            if (isMac()){ // OSX
                if (extFilter){
                    var filter_regex = new RegExp("[^\.]*\."+extFilter+"$")
                    filter = function (file_entry){
                        return filter_regex.test(file_entry.name)
                    }
                }else{
                    filter = function(){ return true } // All and any file(s)
                }
            }else if (isWindows()){ // Win
                if (extFilter){
                    filter = extFilter.charAt(0).toUpperCase() + extFilter.slice(1)+"-files:*."+extFilter
                }else{
                    filter = "All files:*.*" // All and any file(s)
                }
            }else{
                filter = null
            }
    
    
            // Create file dialog
            var path = new File(oldPath);
            // var dialog = path.saveDlg(dialogMessage, filter); // Same kind of error with saveDlg
            var dialog = path.openDlg(dialogMessage, filter, false);
    
    
        // Folder
        }else if(dialogType == "folder"){
            alert("folder diag:\n" + oldPath);
    
    
            // Create folder dialog
            var path = new Folder(oldPath);
            var dialog = path.selectDlg(dialogMessage);
            while (dialog.alias){
                dialog = dialog.resolve.selectDlg(dialogMessage);
            }
        }
    
    
        if (dialog){
            return dialog.fsName.replace(/\\/g, "/") // Back to Front slashes
        }
    }
    

    I'll cross post since my last response to the other crossed the moderation and released after you posted this (and it is relevant for this topic)

    There seems to be backup dialog boxes _SEVERAL_ versions

    • file_entry.saveDlg (): file_entry content is the default value, but do not know if he has locked her
    • File.saveDialog (): same as file_entry.saveDlg, but none value of screening. Maybe it is not locked to original dir
    • folder_entry.saveDlg (): looks identical to file_entry.saveDlg, do not know if there is a difference.
    • Folder.selectDialog: seems more versatile, "simply to choose a file.

    You probably just do some trial and error to choose one that fits, what are the rules everyone has. So far I think Mac has no option for "create a new file, but only this extension." Extension filter only seems to apply to existing opening and win (although even there, he hides just, you can actually set different extension in her typing).

    Confusion between the part which is the "grayed out of all cases" it would imply in fact wants the filter even though the docs say it is not. I.e. you'd need to do a filtering function that accepts two folders or files with right like below (not tested)

    filter = function (fileSystemEntry) {}

    If {(fileSystemEntry instanceof file)

    Returns true

    } else {}

    return filter_regex.test (fileSystemEntry.name)

    }

    }

  • Path of the application on the comments?

    I have an application that needs to synchronize data between my network and my MacBook. I have Fusion 2.0.6 and WinXP SP3 running on the Macbook. XP Pro on the server. The database on the Macbook is in a shared folder and the Mac HD is mounted as drive N: on the server. The application runs in Windows on both ends

    Synchronization must be performed from the main database on the server, which then connects to the remote database on the Mac. No problem seen the distance DB, which is at N:\Users\Shared\TMW9

    The application on the network needs to know the folder in which the program can be found on the Mac. It doesn't have the full path of the application including the name of the application.

    I can't understand what is needed in this area. If I put in the path to the .vmx file, without the file name Professional.vmx in Windows XP, the application seems satisfied, but synchronization crashed shortly after the start. I tried ' N:\Users\rbecker\Documents\Virtual Machines. localized\Windows XP Professional. vmwarevm\Windows XP Professional.vmx \"C:
    Program Files
    «TMW9\ «» I tried it escaped, unescaped and preceded by vmrun. Nothing seems to be acceptable. He said that is not the path to the directory of the program.

    How can I tell the program what the path to the executable file on the virtual machine?

    Shared folders have yours, if you need your Mac files available in XP.  It however will help you share your XP files to other computers.  The toggled State of the shared folders does not affect what you're trying to do.

    If you want to go down the road to mount virtual drive on OS X to share, then you need to fix MacFuse so that it works correctly, then the previous instructions, I wrote will work.

  • The path for the images of attachment in RoboHelp 8

    I'm pretty new to Robohelp, so please forgive me if this has been addressed in another discussion... I have looked and can't seem to find what I'm looking for to describe.

    I work in Robohelp 8 and creation of a new help system in important subjects to a former aid system. The problem, I'm running in and I don't see how to solve is that there are a few topics that have images where instead of the path of the image to a folder called "Images" in the main directory, it plunges the graph in the Project Manager window when I import the subject. I tried watch a subjects who do not have their images in the window of senior project manager, and compared with that, and I don't see the difference. I tried to rename the images and placing them in the correct folders and then insert the images in the topics, but he always tries to look at the main folder and rest pours out the image in the project manager.

    Please share any help you can provide.

    Right-click on the project files and add a new folder called Images. The images probably will appear.

    You do not have to have images in the same folder as the subjects, it is up to you, where they are stored. When project files shows, you see the real records and you can store things where you want. When you see the HTML files, RoboHelp shows the old view with Nick records. I suggest you stick with project files and then have the images where you want.

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

  • Paths of the application and the Plugin (32 vs 64 Windows)

    I'm working on a version of our installer of plugin to put the plugin for 32-bit windows in the folder plugins Photoshop 32 bit and the 64-bit plugin in the plugins Photoshop 64-bit folder.

    Currently our only 32-bit Installer uses the Windows registry to locate plugins directory.  (HKEY_LOCAL_MACHINE/SOFTWARE/ADOBE)

    Looking here now I see that even if I chose the two 64 CS5 and CS5 - 32 when I installed Photoshop, there is always only one entry in the path of plugins.  But there are two separate files of plugins.

    Even worse Adobe seems to have changed the Organization over time.

    For CS4, both versions are in the "Program Files" directory

    For CS5 Photoshop 32-bit directory is 'program (x 86) '.

    By changing the installation program to support 32 & 64, I would like to know the best practice to find these plugin files, so I can verify their existence (since it is possible to install only 32 or 64 rather than two) and then put the plugin just in the right place.

    Now this is pretty cool:

    get plugins path of the registry

    install

    I hope I don't have to implement of the trials and errors, such as:

    start in plugins path of the registry

    go up a level and look for other files from photoshop

    go up to another level and see if there are other program files folders

    recurse in their search for Photoshop files

    If there is no better way, the absence of a second registry entry should be considered a bug?

    Adobe has not modified the Organization of the registry, Windows did.

    I also write installers for my business, so I'm quite familiar with that.

    On 64-bit Windows, the registry path you see when you get the keys in HKEY_LOCAL_MACHINE/SOFTWARE/ADOBE are 64-bit values if you call the Registry API from a 64-bit process. They are 32-bit values if you call the API to register a 32-bit process.

    So, you can either write separate 32 and 64 bit installers, or you can get acquainted intimately with registry redirection which runs on 64-bit windows. (None of this is a concern on 32 bit only for Windows systems)

    To learn more about the registry redirection, go here:

    http://msdn.Microsoft.com/en-us/library/aa384232 (v = vs. 85) .aspx

    This is a very important page for editors of the installer to read:

    http://msdn.Microsoft.com/en-us/library/aa384129 (v = vs. 85) .aspx

  • Path of the file saved with "save under" Action is fixed?

    I am trying to create an action that will save the file open for a JPG file (quality 9, Matte: None), always in the same folder it comes, as it does when this is done manually. (The preference on save slot in the original folder is enabled).

    What I find is that when the action is saved, the path to the folder at the moment is fixed in action, rendering it useless for other backups of open files in different folders.

    Is it possible to not save a path when recording the Save action under or make variable so who adopts the folder that was chosen was the command was called manually?

    TIA, Joel.

    Photoshop CS5 Mac

    Mac OS X 10.6.4

    MacBook Pro 17 "2.4GHz/4GB/320GB

    Muppet Mark quite succinctly explains the relative merits of AppleScript and JavaScript for Photoshop-automation in this thread:

    http://forums.Adobe.com/thread/755858?TSTART=0

  • [JS MAC] Problem of path of the file with special characters

    Hello

    I'm trying to declare the path of a file on a text file. One of the folders includes a special character such as "love".

    So, when I try to write a txt file with this path, it fails.

    Here are some that I've isolated for debugging.

    The problem appears on a Mac, but may be present on a PC as well.

    Given a file open in Indesign

    This file is placed in a subfolder named "love."

    Dittos var = line (app.activeDocument.fullName);
    var myFileFullName = theFile.fsName;
    var modifsArr = [];
    modifsArr.push (myFileFullName);
    var queue = txtFile (Folder.desktop + "/ test.txt");
    If (file (Folder.desktop + "/test.txt").exists is false))
    {
    var txtFile = new file (Folder.desktop + "/ test.txt");
    }

    txtFile.open ("e");
    txtFile.seek (0.2);
    modifsArr = modifsArr.join ("\r");
    theFile.write (modifsArr); Here the writing fails
    theFile.close ();

    How can I solve that?

    TIA

    Loïc

    Adjust File.encoding...

    Dirk

  • Can I repair the paths to the images?

    For a reason unknown to me, a big catalog with several subfolders has partially blocked. When I synchronize, LR wants to trash and re - import for some records, their full content. Should I let him do that, I lose probably all the parameters of the image. I tried to redirect the path to specific folders, nothing helps. Otherwise LR normally sees the images and opens them, it's just that I can't use the synchronization tool or import more to import new additions without deselect a whole bunch of files... Is there a way to fix this? Unfortunately there is no current backup.

    OK, being only on an internal hard drive out of a possible problem on this OS.

    You never move these files in the Finder? It is important that you do not have.

    What happens when you S Cmd to save metadata backup in all these files? If it works well, then you can create a new catalog and import the files into it.

    Why these other catalogs in your ps? Why fragment of control of your photo collection?

    John

  • Urgent-renamed the folder in the folders and now error for all users?

    Hello
    Well I asked me to shorten a name in the shared folders and so I changed it. Now, I get an error if I click on tables of edge or shared folders (which is empty now btw?) or a catalog management, its display:

    Target path not found (operations customer/Shared /) error Code: GZ8VXQ96.

    Are we not supposed to create a folder in the folders and then change the name?

    Help, please. The server administrator BI tells me that everything the world reports are currently not available.

    Years

    Are we not supposed to create a folder in the folders and then change the name?

    You can, but as we are engineers, you can also expect impact of this...

    fix your problem is:

    1 rename the current folder in older...
    2. now, try to perform the operation and everything by doing this, you might have seen as option: preserve references to the old name of this item. below the field to rename...
    3. give the new name and use the name option preserve...

  • Path of the hyperlink file includes a '&' sign

    Hello

    We recently discovered that if we create a hyperlink to a file on our network, the link does not work if the path contains a sign '& '.  For example: N:\A & D\Sample.doc.  If we remove the symbol '&' the path of the file, the links seem to work very well.  Is this a known issue?  If so, is there something we can do to work around this problem?  It would be easy for us to change the names of folders on the network, but we are not the only ones to use is not quite as simple as that.  Any guidance/background/input is much appreciated.

    TW

    Probably, you enter the hyperlink in the design mode. "RoboHelp translates into href="N:\A&D\Sample.doc' href="A%26D\Sample.doc ', which is for the hyperlink html coding. "Change the hyperlink back to HTML mode, to href =" N:\A&D\Sample.doc "should solve your problem.

    Welcome,

    Willam

  • Path to the file standard.js

    I'm fairly new to Captivate and generated three tutorials that I add to a RoboHelp project. Everything was good with the tutorials that everything went to the Captivate but only connected inside RoboHelp. I discovered that the problem was not with RoboHelp but the path to the file standard.js in the HTM file generated in the Captivate published output. Once I changed the path to the file, everything was OK.

    My question is, what Captivate uses to produce the path to the file standard.js. All my Captivate projects were still in separate folders at the same level, the path to the javascript file varied considerably. I know what to look for in the future, but I'm just curious

    Heya Colum

    The Standard.js simply needs to exist in the same folder as your other Captivate content. You may want to just place all your Dove inside a single file in RoboHelp and things can work. Also, be careful about the use of spaces in filenames Captivate, RoboHelp likes to add underscores and which can wreak havoc with your Captivate trying to play in RoboHelp.

    See you soon... Rick

  • Could someone tell me how to stop the folders and icons rearrange themselves

    Before I updated to El Capitan I could arrange the files on my desktop or in any folder in the finder, in order that, I opened I wanted and they would REMAIN THAT of the WAY. Now, folders and icons in the folders reorganize themselves, usually in alphabetical order, each time that I add, delete, or move something in a folder. This causes a serious pain for me and make my extremely inefficient workflow.

    I managed to stop the folders on my desk of reorganization by going to view > options > sort by selecting: None (thanks Mac forum) and I can do this in a folder if I want to rearrange things myself, but I seem to need to do this individually for every single folder and there is no guarantee that the next time I turn on my computer it will be always in that order. El Capitan before I could move my files manually on my desk and in a folder and if things got a little messy, or I wanted to start, I simply chose sort > by name and everything would be perfectly back to alphabetical, as a grid, on the right side of my screen, or in a grid at the top of a file. AND... If I wanted to manually move a folder or icon after sorting by name, I could still do it, without having to go to tri: No. Now, if I say sort: None, which seems to be the only way to manually sort the icons or folders, all of a sudden my own grid of files are everywhere in my office or mixed into a folder, unlike before where they would simply stay in a grid in alphabetical order, making it much easier to find things when manually reorganize. In my workflow, I need to be able to fix things and make them stay there, then, how do it works as before. Is could someone please tell me if there is a simple way to get things to work like they used to, when the only time where my files or icons arranged themselves was when I SAID to THEM, keeping in mind I'm not that computer, so if it's code, or go beyond the preferences or settings , you've lost me.

    Click on the desktop, command J > sort by none

Maybe you are looking for

  • Satellite A300D PSAKCE - cannot find drivers for Win7

    Hello! Having Satellite A300D - 157 PSAKCE 00D00LG3 and Windows 7, but I can't find the drivers for.In the support page I can only find drivers for WLAN and Bluetooth... No driver video and display, no keys, no HDMI, no noise, no gonfigfree... just n

  • My Satellite L850-17F is overheating, but not always

    Hello I have this strange thing happening with my laptop... Now, you see, when I turn on and use only for daily homework, as the electronic control, facebook, work in microsoft office, I can work for hours and it will heat up normally like any laptop

  • Satellite L300 webcam no longer works after upgrade to Windows 7

    I upgraded from Win Vista to Win 7 and my webcam no longer works.He said that there is an error. On the support page, it is said that this model is not intended for Win7, so I installed Win Vista drivers.Because the driver for Win7 is not available,

  • Satellite A200 - black screen when restarting

    I have satellite A 200 and I have the problem that when you restart, I have only a black screen and goes no further. But I do not beep. Only available in one place. I tried everything, but nothing puts the order. I tried to install Xp, but it does no

  • HP Pavilion a1640n: install a new nVidia video card

    I just bought a GeForce 9400 GT from nVidia video card to upgrade my HP Pavilion a1640n running Windows XP SP3.  The a1640n has integrated the video and says nVidia user guides: "If your motherboard has integrated video card integrated, you may need