Spaces in a file path

I'm not sure what to put in place of spaces in a file location. This is what I have:
do shell script "open /Users/rileylloyd/Adobe CS6 Master Collection/Adobe Photoshop CS6.app"
And this is the error I get:
The files /Users/rileylloyd/Adobe, /CS6, /Master, /Collection/Adobe, /Photoshop, and /CS6.app do not exist.
I know usually it is %20, but I tried, it didnt work. Whats apple special version this time?

You could also use the string property quoted form of like
do shell script "open " & quoted form of "/Users/rileylloyd/Adobe CS6 Master Collection/Adobe Photoshop CS6.app"
While in this case adding the quotes isn't to difficult in more complicated constructs it can be tricky escaping just the right things.

Similar Messages

  • Problem launching Firefox from Windows with file path that contains space characters in the html file's file name

    We have a software application that programmatically launches the default web browser using the Windows shell execute function ("ShellExecuteA" in the "shell32.dll" library of the Windows API) along with a file path for a saved local html file that is to be displayed. In the case that FireFox is the default browser and the file path for the html file contains any space characters in the html file's file name, Firefox (in this case v7.01) will display an error message "File not Found..." and then will also proceed to open tabs for each of the individual words in the file name, launching as the URL path, each individual word appended to ".com".
    In the following example, the path "C:\KSSecOfState\Forms\Kansas Secretary of State - Filings and Forms.htm" when launched programmatically, resulted in the error message "File not Found...Firefox can't find the file at /C:/KSSecOfState/Forms/Kansas." and opened up browser windows for "http://www.secretary.com/", "http://www.of.com/", "http://www.state.com/", "http://www.and.com/", and attempted to launch "http://forms.htm". If the same file (renamed) is launched using the path string "C:\KSSecOfState\Forms\KansasSecretaryOfState-FilingsAndForms.htm" the file opens up correctly in Firefox. Clearly the presence of spaces in the file name is causing the problem.
    I should also note that either path (with or without space characters) works properly if pasted directly into the Firefox URL path menu bar for a live instance of Firefox. The test path strings I used were:
    C:\KSSecOfState\Forms\KansasSecretaryOfState-FilingsAndForms.htm
    C:\KSSecOfState\Forms\Kansas Secretary of State - Filings and Forms.htm
    Does anyone know anything about this problem or how to work around it (other than the obvious answer of taking the spaces out of the file name which is not possible for this application). It seems the problem is specific to Firefox. IE works properly if launched programmatically with spaces in the file name passed to it. I haven't tested other browsers yet.
    Thanks!

    If starting from ShellExecute works the same as starting from the command line then there are two options:<br>
    Put everything inside double quotes<br>
    '''C:\Program Files\Mozilla Firefox\>'''firefox.exe '''"c:\test\svg test.htm"'''<br>
    Convert to a valid url with file:// protocol and percentage-escaping the space<br>
    '''C:\Program Files\Mozilla Firefox\>'''firefox.exe '''file://c:\test\svg%20test.htm'''<br>

  • Create table space command with no specification of data file path.

    I am using following command for creating table space in oracle 11g
    CREATE TABLESPACE testTbSpace DATAFILE 'dataFileName.dbf' SIZE 50M REUSE AUTOEXTEND ON NEXT 1M MAXSIZE 32767M NOLOGGING"
    But it is creating datafile dataFileName.dbf at disk at following path
    echo $ORACLE_HOME/dbs
    I dont want to create datafile at this path and also dont want to specify data file path in 'create table space' command.
    Is there is any parameter,which i can set and above command start to create dataFileName.dbf at that path
    Edited by: user8680179 on May 15, 2012 1:54 AM

    user8680179 wrote:
    i issued following commands from 'SYS' user;
    1. show parameter db_create_file_dest;
    NAME TYPE VALUE
    db_create_file_dest string
    2.alter system set db_create_file_dest='dataFilePath';
    System altered.
    3.show parameter db_create_file_dest;
    NAME TYPE VALUE
    db_create_file_dest string dataFilePath
    4.CREATE TABLESPACE testTbSpace2 DATAFILE 'test1.dbf' SIZE 50M REUSE AUTOEXTEND ON NEXT 1M MAXSIZE 32767M NOLOGGING;
    Tablespace created.
    But still my test1.dbf file is creating at old path($ORACLE_HOME/dbs)Is datafilepath a real location? I don't think so! Give a proper path like "d:\oracle\" and retry.
    Aman....

  • File Path adds %20 where there are spaces

    Hi Everyone;
    I'm trying to track down a problem.
    The file path for Program Files folder in the old version of my app presents C:\Program Files\Folder in the DOS console. And the app works.
    However, the new version of the app displays the paths in the DOS console like this C:\Program%20Files\Folder
    And I get path not found errors.
    One of the difference between the 2 apps is the first is using java 1.3.1.02 the second is using jvm 1.4
    Does anyone know if 1.4 will do cause this change to happen ?
    stev

    I have found that the problem was with the java version.
    I switched from jre 1.4.1 to java 1.3.1 and the problem is resolved
    I however, have not pinpointed exactly where in the code causes this different behavior. but if anyone sees something like this in the future, you might want to double check the different behavior between 1.3 and 1.4.
    it could be a simple method etc = i haven't looked in the code to identify the exact problem however, cause this is a 3rd party java app.

  • Spaces in File Path Hyperlink

    I have a crystal report that lists invoices. On each row is an image that contains a hyperlink that loads an image of the scanned invoice. The invoice fields related to that row are passed into the hyperlink. The hyperlink is as follows;
    PVault\Documents\Accounts Payable\Invoices\"&{Invoice.VendorNumber}&"\AP Invoice "&{Invoice.VendorNumber}&" - "&{Invoice.InvoiceNumber}&".tif"
    This hyperlink worked outside of the DNN portal. I have added this report to the portal and am running the report successfully. However when I click on the hyperlink in the DNN portal the hyperlink fails with cannot find file path.
    I would appreciate any help with this. Thanks.

    Hi,
    Please have a look at the Rules of Engagement before posting to these forums. The link is here:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement
    Once you have read the above, please provide the necessary information.
    VS version?
    CR Version?
    Service pack level?
    Production or development issue?
    Sincerely,
    Amit

  • How to add new text and an empty space before a file name with Automator

    I can create a new service to add to multiple files some text before the file name but I need to add even an empty space; e.g. file name original  becomes: new text(space)file name original. The aim is to add this text and space to multiple files.
    I hope to be understood. Please can somebody help me?
    Thanks

    This is an old Apple-supplied AppleScript that will do the job.
    IMPORTANT: note the conditions of use: it will choose the frontmost Finder window to operate on. Therefore, open the folder you want to change the names of and make it the front finder window BEFORE running the script.
    Add to File Names
    This script is designed to add a prefix or suffix to files in the front window of the desktop.
    If no folder windows are open, the script will affect items on the desktop.
    Copyright © 2001–2007 Apple Inc.
    You may incorporate this Apple sample code into your program(s) without
    restriction.  This Apple sample code has been provided "AS IS" and the
    responsibility for its operation is yours.  You are not permitted to
    redistribute this Apple sample code as "Apple sample code" after having
    made changes.  If you're going to redistribute the code, we require
    that you make it clear that the code was descended from Apple sample
    code, but that you've made changes.
    --March 2014: Changes by Phil Stokes to make the script work on 10.9
    --these changes are simply reversing the order of parameters in the lines that have "copy" in them
    -- The following line is disabled due to a Menu Manager bug
    --set the source_folder to (choose folder with prompt "Pick the folder containing the files to rename:")
    try
              tell application "Finder" to set the source_folder to (folder of the front window) as alias
    on error -- no open folder windows
              set the source_folder to path to desktop folder as alias
    end try
    set the prefix_or_suffix to ""
    repeat
              display dialog "Enter the prefix or suffix to use:" default answer the prefix_or_suffix buttons {"Cancel", "Prefix", "Suffix"}
              copy the result as list to {button_pressed, prefix_or_suffix}
              if the prefix_or_suffix is not "" then exit repeat
    end repeat
    set the item_list to list folder source_folder without invisibles
    set source_folder to source_folder as string
    repeat with i from 1 to number of items in the item_list
              set this_item to item i of the item_list
              set this_item to (source_folder & this_item) as alias
              set this_info to info for this_item
              set the current_name to the name of this_info
              if folder of this_info is false and ¬
                        alias of this_info is false then
                        if the button_pressed is "Prefix" then
                                  set the new_file_name to the (the prefix_or_suffix & the current_name) as string
                        else
                                  set the new_file_name to the (the current_name & the prefix_or_suffix) as string
                        end if
                        my set_item_name(this_item, the new_file_name)
              end if
    end repeat
    beep 2
    on set_item_name(this_item, new_item_name)
              tell application "Finder"
      --activate
                        set the parent_container_path to (the container of this_item) as text
                        if not (exists item (the parent_container_path & new_item_name)) then
                                  try
                                            set the name of this_item to new_item_name
                                  on error the error_message number the error_number
                                            if the error_number is -59 then
                                                      set the error_message to "This name contains improper characters, such as a colon (:)."
                                            else --the suggested name is too long
                                                      set the error_message to error_message -- "The name is more than 31 characters long."
                                            end if
      --beep
                                            tell me to display dialog the error_message default answer new_item_name buttons {"Cancel", "Skip", "OK"} default button 3
                                            copy the result as list to {button_pressed, new_item_name}
                                            if the button_pressed is "Skip" then return 0
                                            my set_item_name(this_item, new_item_name)
                                  end try
                        else --the name already exists
      --beep
                                  tell me to display dialog "This name is already taken, please rename." default answer new_item_name buttons {"Cancel", "Skip", "OK"} default button 3
                                  copy the result as list to {button_pressed, new_item_name}
                                  if the button_pressed is "Skip" then return 0
                                  my set_item_name(this_item, new_item_name)
                        end if
              end tell
    end set_item_name

  • Full file path in Office 2007 when open or save

    Am not sure i can raise this question here.
    We are using 10gR2 Application server and Windows 7 as a Client. In the client machine we have installed the Microsoft Office 2007.
    From the forms we are trying to open and save (after changes) the files of format Doc/Xls. These files will be stored in separate shared folder accessible through Application server and client.
    Now the issue is when we open/save the file it shows the Entire path (In Saving Window) which should not happen. In previous release of MS office its not like this.
    Please help us "to hide the file path to be displayed to the user". Like changing the registry for Office 2007 or workarounds or new solutions or any other oracle's product.
    Note : Showing the file name is the Office 2007s default behavior.

    The only way to avoid showing this from a Forms point of view would be to not display the open/save file dialog in the first place. In other words, control the opening and saving using your own custom dialogs. Also, be aware that using remote drives (network mapped) may cause problems. Generally speaking, doing this would not be considered supported.
    As for opening documents on the client, there is no need to use the open file dialog if you know the file name and path to that file in advance. You can simply use WebUtil's CLIENT_HOST. So let's say you wanted to open a file named mySales.doc and you knew its location, all you would need to do is this:
    Declare
         my_cmd varchar2(255);
    Begin
         my_cmd := 'rundll32 shell32,ShellExec_RunDLL '|| :t1;
         CLIENT_HOST(my_cmd);
    End;In the above example, +:t1+ is a text field on a canvas. The value would include the path and file name to be opened. Of course this could be a pl/sql variable which you programatically populate or any combination of that. The value value must include the full path (with drive letter) and full file name. If the path or name contains spaces, double quotes may likely be necessary. You will have to test.
    For saving an opened file, you are mostly out of luck from Forms unless you took control of Word/Excel as it was being opened in the first place. For example you likely can open the Office products using OLE or VB or other macro and control what the open and file save dialogs look like or if they are even accessible at all. But this has nothing to do with Oracle or specifically Forms.
    You need to refer to the MS documentation.

  • File path control - browse button colour/color

    I can't change the colour of the browse button on a file path control. I'm using LV 8.5, but I think I have the same problem on 7.1
    Is the only way to change the colour to customise the control? Every other part of it seems to take colours from the tools palette.
    Thanks for any pearls of wisdom.
    Jon.

    I am able to change the path browse button color in 8.51 are you trying to change the button color or the color of the folder on the button.  To change the buttoin color use the paint tool and make sure you hit the space bar so you are painting the left color (Background color I cant remember which is which).  This probably doesnt work on system buttons.
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

  • File paths and archiving (and referenced files).

    I've come to the stage where I need to start using referenced files (out of disk space on my laptop) and also start archiving projects. One of my plans was to start keeping an off-site backup of all the originals in case something really bad happened. I'm also going to have on-site backup of projects. But for the off-site originals I would like to have some simple way of finding the photos in case something bad happens, my idea was to simply create a PDF from the list view where I could see the photo and the file path to where it's stored (I plan to store them in simple year-month-day hierarchy).
    The reason why I'm not going to archive the projects off-site is simply the cost, I did a test yesterday and it looks like just storing the originals would be approx 1/3 in size of the projects.
    If someone has a better idea of how to handle this please let me knoe

    I'll try to explain.
    About the cost: Hard disk space is really cheap and I can not see how the cost should be that expensive. This is based on your statement that you still have your images on your laptop and that itself limits the amount of space hence a rather small library.
    When it comes to backing up your projects you have several options. First, if you really want to be cheap about hard disk space (I think you should not since your images really are priceless) you can export projects of your referenced images and not consolidate the images into the exported project. Not to consolidate vs. consolidate images on export really makes a difference in the exported project size. On the other hand, not consolidate images on export of a project makes you back up your images separately, which leads to more work.
    My advice is then; buy two disks (preferable three disks), and export your projects with the images consolidated into one of them and start using the other one with your referenced images.
    I always advice users to have their images in at least three different locations and IMHO the ideal solution for you would be to have your images referenced on one disk and mirrored backups on the other two disks, either one stored in two different locations in case of burglary, fire etc.
    Regards
    Paul K

  • Table or function module from for complete physical file path?

    Hi All,
    I know the Logical file and Logical path name, i can see the complete path also from logical path name i.e. the physical file address through transaction FILE, e.g. /USR/TMP/ , but i want to display this path in one of the report output,
    so please help me with the table or the function module which can give me the complete physical file path.
    I checked the the table ADMI_FILES but it contains the file name or the Logical path name but the complete physical file address e.g /USR/TMP?, like this is not available. More over i tried function module file_get_name, still the physical address is not correct one, it is giving same address for all logical paths.
    Kindly Guide me for this
    Regards,
    Nikesh Kumar

    try sth like this:
        CALL FUNCTION 'FILE_GET_NAME_AND_LOGICAL_PATH'
          EXPORTING
            LOGICAL_FILENAME = LDS_NAME
                IMPORTING
            FILE_NAME        = sfile
            LOGICAL_PATH     = pth
          EXCEPTIONS
            FILE_NOT_FOUND   = 01.
        IF SY-SUBRC NE 0.
          MESSAGE E300(BD) WITH LDS_NAME.                         " TODO MG
        ENDIF.
                                                                                    SELECT single PATHEXTERN FROM path INTO expth
               where pathintern = pth.
        replace '<FILENAME>' with space into expth.
        concatenate expth '/' sfile into sfile.
        open dataset sfile for output in text mode encoding default.
    A.

  • Save as PDF file path dialog

    Again, another odd operation that Adobe has added to Acrobat Professional DC for Mac. When I Save, or Save As in Acrobat DC, the next window is an Adobe Save As PDF  window with several, helpful options. There is a list of five or so Recently Visited folder, options in the sidebar to send this to a Cloud and a giant button "Choose a Different Folder". This button is so large, I actually, have trouble locating it.
    Usually, I'm working in a current document and the folder I wish to save that document to, percolates to the top of the Recent Folders. That's handy. However, when you click that selection, actually any selection, even Choose a Different Folder, the OS X Finder window always opens up to the same folder. The folder is named, simply "T" for temporary. If you save anything there, and close Acrobat, you have lost your work my friend. I have figured that out, now. But my question is, why ask where my destination folder of choice, if you never locate it anyway? That window is a waste of space.
    This is obviously a bug between the new DC version and the Mac Finder system. The action in the Save As PDF window need to have the file paths updated.

    Hi
    I accessed to a website from my uni library computer using my student account and download a pdf file in there. However, that pdf file contains a line of words saying "Accessed by ... University Library on 30 Mar 2007". This line is printed vertically and on the left side of the page.
    Do you know how to remove that line? I think the website just embedded that line into the file.
    Please help.
    Thank you very much.
    tuanduy

  • How to add hyperlink to file path of pdf when creating email using the email submit button?

    I have a form with an e-mail submit button that opens an outlook email with the .pdf file as an attachmnet, and addressed to the e-mail addresses i put in tthe address field.
    What we are trying to abvoid is sending a bunch of attchement to numerous people, clogging up email space/server space.
    What we would like is not to have the .pdf attched, but rather in the body of the email have a hyperlink to the path of the document. Can this be done, and if so can anyone give me some guidance.
    Thanks in advance
    Ron

    Then you can use something like this:
    app.mailMsg({ bUI: true, cTo: "[email protected]", cSubject: "You can find the file at: " + this.path });
    The path that will be inserted is a so-called "device-independent path", though, so they may not be able to use it directly.
    It's possible to convert it to a "normal" file path, but that is a more complex scripting task.

  • Reconnecting clips weirdness no file path listed

    Every time I open my project I have to reconnect 10 clips.
    7 of the clips have no file path. Does anyone know how to fix this?
    Here's a snapshot http://snipr.com/uw311-q2w

    Tom Wolsky wrote:
    "Do you know what files it's looking for? What are the exact names of the media files?"
    At least give us the exact clip names? Something.
    God I wish I did, then I could reconnect the clips. How can I find this out if all it says is "Macintosh HD:" and blank space? Is there some other utility I can use?
    Copying to a new project won't do anything if the file path is broken. Do you know where >the media is? Presumably in your capture scratch.
    yes it's in my scratch.
    I figure if I first make a copy the of project file, open this, then delete unused sequences out it may resolve the issue as the sequences that I need to play work fine. I figure it's trying to resolve clips from sequences I could give two ***** about. Maybe then it would stop trying to locate that data.
    I dunno... I'm a Mac Consultant and this issue has me baffled.
    I even bought FCS Suite to clean up my FCP system, but figured it wouldn't solve this problem and it hasn't.
    Brandon

  • DATA Log file path change in sql

    Dear experts,
    due to non avaibility of space in disk i have move my SAPLog file in another drive, but now my SAP working fine but when i try to change path in SQL 2005 its not giving me permission to do.
    please let me know how to change log file path in sql 2005.
    & if infuture i change my SAP 1 DATA file path how we change configure new path for dabase  in SQL 2005.
    Regards,
    jitendra.

    Hi
    Kindly go thru below web links. before start the process stop the SAP instance.
    http://support.microsoft.com/kb/224071
    Set the log DB size - http://help.sap.com/saphelp_nwce72/helpdata/en/f2/31ad9b810c11d288ec0000e8200722/content.htm
    and ref the SAP Note 363018
    Regards
    Sriram

  • Massive mp3 file(path) move question

    Alright so I recently purchased a 2 terabyte network server for my home network. The purpose of this is to move all my music, movies, photos, etc. to the network drive in order to clear out all that space on my laptop's drive. At this point and time, I've only copied all my music to network drive. Figure the next step would be is to delete all my music off my local drive. But then got a little worried about iTunes. Now when I delete my music off my local drive, iTunes will be looking for the mp3s via the originated file path. Obviously the file is not going to be there. So when this happens in iTunes, the circularly enclosed exclamation point pops up and iTunes wants you to manually and find the file for it to play. So essentially my question is... Since I'm doing this on a large scale, Is there an easier way to get this done?
    Best solution I was able to come up with was to delete all the songs in iTunes and re-drag all the music back in there. BUT... the problem I have with that a good majority of the music's album artwork were manually put in by me (kind of uh...yeah about seeing the album artwork on the screen when I'm listening to my iPod). So I don't want lose all that it. Help! Kind of long, I know. Appreciate any help or suggestions.

    Thanks for responding Brian -
    The message I get is Error Code -2147467259
    Conn Execute.vi->InsertIntoFrom.vi<ERR>Exception occured in Microsoft OLE DB Provider for ODBC Drivers: [Microsoft][ODBC Microsoft Access Driver] Could not find file 'C:\Project\APDSS\DataBase\ExternalInterface.mdb'. in Conn Execute.vi->InsertIntoFrom.vi
    When my query looks like
    INSERT INTO InternalInterface SELECT Field1, Field2 FROM ExternalInterface.ExternalTable WHERE Id = '065649-101-750';

Maybe you are looking for

  • Problem in abap web dynpro URL issue

    Hello All, I have created a web dynpro for calling different tables with F4 help dynamically through ALV webdynpro, I can update, delete/insert row in ALV for multiple tables with one webdynpro program. Now problem is user wants to create url for dif

  • My phone number is gone from imessages on my iphone

    When I send and recieve messages on my iphone they do not go through my phone number instead they go through my email and my phone number doesn't even appear as an option anymore for imessages.

  • Custom Operations in SAP XI

    Hi, is it possible to create our custom defined operations to operate on the received messages ? For example, consider this scenario: - For all messages received into SAP XI, I want to log the Message Interface name and Sender Service name in a datab

  • How do you connect two 27" LED Cinema Displays together?

    I currently have one screen connected to my MacBook Pro 2010.  How do I connect the second screen if I only have one Thunderbolt port?

  • Mac OSX  10.5.5 update bug

    Has the bug in the 10.5.5 update been fixed yet? Is it safe to download and install? I use Log and Transfer for my P2 data and I know that in previous posts some people have had problems with this not working after updating to 10.5.5 Thanks. Weenie