AppleScript, Terminal Server and files with spaces

Hey all, I wrote a small program to move files with the script action do. I came across a problem with files that have spaces. AppleScript freaks out a bit when I use the terminal command 'touch ~/Desktop/Hello\ world. " Is there a work around for this?

tell application "Terminal"
  do script "touch ~/Desktop/Hello\ World"

end tell

Put a second-next to the existing one.

(139109)

Tags: Mac OS & System Software

Similar Questions

  • CS3 files with spaces in the name

    I have a slight problem with the files that are in folders that have spaces in the name of the folder.

    For example, the file is in the following location: rtu 41%.psd/c/n Hold/Test Image file/mondeo

    If I run the script, it creates a folder called ScriptFolder to the location of the file and a saveAs psd files in that folder but I get an error.

    General Photoshop error occurred. This feature can pas...ld\...\mondeo n 41% ' because the file is not found.

    If I change ' folder of images to test ' to 'Test_Image_Folder', which is where the file is the script works.

    Here's the script of any suggestions on how I can get around this?

    var myPsDoc = app.activeDocument;
    var justname = myPsDoc.name.split ('.) ») [0]
    var MonNouveauDossier = new Folder(myPsDoc.path+"/ScriptFolder/"); "
    If {(myNewFolder.exists)
    } else {}
    myNewFolder.create ();
    }
    newFile = new file (MonNouveauDossier + "/" + justname)
    photoshopSaveOptions = new PhotoshopSaveOptions()
    photoshopSaveOptions.embedColorProfile = false
    myPsDoc.saveAs (newFile, PhotoshopSaveOptions, true, Extension.LOWERCASE)

    With the help of decodeURI should take care of the problem with spaces in the path.

    var MonNouveauDossier = new folder (decodeURI (myPsDoc.path) + "/ScriptFolder/");

  • IAM trying to share video and files with my new laptop but I can not connect with my laptop has windows7

    I want to import videos from my desktop to my laptop top. I've known idea how and HELP just confuses me more

    Hi JonVigue,

    What operating system is installed on the desktop?

    If you have windows XP installed on your desktop, you can follow these links & check if it helps.

    Sharing files and printers with different versions of Windows

    Networking of computers running different versions of Windows

    Hope the helps of information.
    Please post back and we do know.

  • All the icons and files with the extension .lnk and error message: "Windows cannot open these files.

    Original title: STUCK IN. LNK ??????????????????????????????????????????????????????????????

    all my icons turned into extensions of file and state that "windows is unable to open these files. I can't search the Web for a fix, because it downloads as a .lnk I can't open as well?

    Hi MarcSatz,
     
    -Did you change on your computer before this problem?
     
    This problem occurs when one or more of the following conditions are met:
    • The registry values that are associated with the file name extension are corrupted or missing values.
    • The computer is infected with a virus.

    Here is an article that will guide you in the process of fixing the issue:

    Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

     

    Cannot open files with extensions such as.exe, .com, and.lnk on a Windows XP-based computer

  • Newbie question: can a LabView script or exe run on a Web server and interact with PHP?

    Hi all

    I am a complete newbie. I had to have an existing LabView project and have been asking if it can work with a PHP Web site. I would like to be able to create a form (for entry) on a Web page, and then go this LabView project entry existing. The existing LabView project then treats the input and generates a text file that the user wants to download from the site.

    So my question is, is it possible? If so, how to configure it and what products/costs might be involved?

    Thanks in advance

    A

    Hi Andy -.

    There are a few limitations "Remote panels" who probably will not do what you are trying to do as possible.  First, the remote panels have only runs on a Server Web of LabVIEW, and this server does not support PHP.  Integrate a web site that uses a web server with more features of LabVIEW is to put the server on a different port and then use an iFrame or something to integrate LabVIEW remote panel page into your own web site.  Communication back will probably have to use another protocol tansportation or to read and write files that they read and write.

    I highly recommend that you look in another function to LabVIEW, called "Web Services".  These are quite a bit different approach of the remote control and are available only on version 8.6 and later (and probably only editions of developers).  Services Web of LabVIEW allows you to perform a LabVIEW program (or modify an existing one) to connect back using XML.  It is a common place to consume and send commands to a Web Service of LabVIEW by using something like PHP or Flash.  However, you are responsible to provide interfacing features in the language that you use that consume the Web Service of LabVIEW.  For example, instead of a graphic on the front, you would need graphical data output and a PHP program that can do something with it.

    Web Services are quite handy if you need a 'light' client, as well as material interaction features of LabVIEW.

  • How can I resume the click right functionality using Terminal Server and Office 2010

    I have a client who has the 2008 standard R2 server that deploys some applications of terminal services to their users.  Office 2010, Adobe Reader and Quickbooks are notable apps that I was sent.

    The problem arises when they bought a couple of refurbished Dell desktop computers.  They lose the ability to right click (option flashes then disappears instantly) - but only in Office programs - Quickbooks and Adobe still working.

    The question is only on these two new machines, which are Windows 7 Professional (and they have other machines pro Win7).  I reinstalled the apps and it solves the problem temporarily, but it always comes back.

    I had to try a few different mouse and I have these computers also remotely accessible and experienced the issue.

    All tracks for a solution would be greatly appreciated!

    Hello

    Thanks for choosing Microsoft Community Forums.

    You have reached the end user Microsoft support. The question that you are running in is better suited to the forum:

    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer

    Let us know if you have other questions about Windows in the future. We will be happy to help you.

  • The extract number and String and replace with space

    Hello

    I need to extract number and string of a data table. I use Oracle 8i

    For example: 001FI025A, 001PDIT002, 001UXSV029AA
    I want to separate as follows
    001 025 A FI

    001 002 RESULTED

    USXV 029 A 001


    How can I achieve this? Any help is very useful.

    Thank you

    Hello

    Welcome to the forum!

    You must change "001FI025A" to the name of the column. Example:

    SELECT '001FI025A',
           SUBSTR(TRANSLATE('001FI025A',
                            '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',
                            '0123456789                          '),
                  1,
                  INSTR(TRANSLATE('001FI025A',
                                  '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',
                                  '0123456789                          '),
                        ' ')) AS ELEMENT_1,
           SUBSTR(LTRIM(TRANSLATE('001FI025A',
                                  '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',
                                  '          ABCDEFGHIJKLMNOPQRSTUVWXYZ')),
                  1,
                  INSTR(LTRIM(TRANSLATE('001FI025A',
                                        '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',
                                        '          ABCDEFGHIJKLMNOPQRSTUVWXYZ')),
                        ' ')) AS ELEMENT_2,
           LTRIM(SUBSTR(TRANSLATE('001FI025A',
                                  '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',
                                  '0123456789                          '),
                        INSTR(TRANSLATE('001FI025A',
                                        '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',
                                        '0123456789                          '),
                              ' '))) AS ELEMENT_3,
           LTRIM(SUBSTR(LTRIM(TRANSLATE('001FI025A',
                                  '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',
                                  '          ABCDEFGHIJKLMNOPQRSTUVWXYZ')),
                  INSTR(LTRIM(TRANSLATE('001FI025A',
                                        '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',
                                        '          ABCDEFGHIJKLMNOPQRSTUVWXYZ')),
                        ' '))) AS ELEMENT_4
      FROM DUAL;
    

    Kind regards

  • change the hostname and IP address of server terminal server

    Hi I have a terminal server win2k3 server would be possible to change the ipaddress for this server & host name? do I need to reactivate the license for this server terminal server again in this case?

    Hello

    Microsoft Communities is for consumer issues on Windows 8, Windows 7, Windows Vista and Windows XP. Your question is facing a Windows 2003 Terminal Server and would be better treated in TechNet for ITPROs.
    Click here for a link to repost your question in the TechNet forum.

    Sincerely.

    Marilyn

  • Files and folders with the same name

    I am trying to unzip some files and folders and it works fine on my computer with Windows XP. However, when you use Windows Vista I can't because there are folders and files with the same name. After an internet search, it seems that the only suggestion is to extract the files in separate folders which then would allow them to keep the same name. The problem is I want what they in the same folder and they need to have the names they have.

    NOTE: I do have two files with the same name in the same folder, I have a folder and a file with the same name. I would have thought that this would be acceptable because they are two things separate, and given that it's great under XP.

    All solutions?

    You are right, if I make a file and a text file with the same name, it works fine. However, when I try to extract the files I need it tells me that there is already a file with the same name as the folder. He goes to tell me to choose a new name but my only options are 'try again', 'jump' or 'Cancel '.

    I think I can understand what the problem is. For some reason when you download the zip file, the computer seems to have added a few files side with any format other than "file." It is those who have the same name as the folders as if they were, and they could not be uncompressed because of this. I have no idea whence they came as they appear from nowhere (compared to my XP). I'm trying now unzip the files separately and exclude the strange s 'file '.

    Thanks for your help though!

  • HP Terminal Server M602 list offline

    Since Windows applied defender update KB915597 Friday June 6, model HP printer to the main office 600 does not print.

    There are three same printers at the office here and none of them have been working for this patch was released.

    The driver used is - HP LaserJet 600 M601 M602 M603 PCL6 - both the 32 and 64-bit drivers are installed.

    Have you tried the latest version downloaded from HP and the version of Windows, internal and downloaded from Windows update.

    The driver is installed on a Windows Server 2008 R2 64-bit running as a server terminal server and each HP M600 is affected.

    The VPN network tunnel is managed by routers to SonicWALL.

    Web consoles are available to connect to and manage.

    Have deleted and recreated the queues of the printer, but they show as offline.

    If I disable the SNMP printer shows online, but, when you print to the printer, the job goes to the queue and it is sitting there.

    Printers work when it is used as a local installed IP printer using the driver provided by Microsoft, but only on the local subnet. The copy redirected to this printer on the Terminal Server session fails and that the documents sent there so not go anywhere, they do not appear in the print queue.

    It looks like a firewall/network issue and I hope that you have an idea of what must be the subject of an investigation, the port must be opened in order to get this corrected.

    Applied the printer driver updated to Microsoft as part of the regular correction.

    Restarted the SonicWall router and the system has been able to see the queues printing and printing for devices with standard drivers.

    The solution was a restart of SonicWALL-

  • Windows XP SP3 on Terminal Server 2008 print

    Hi guys,.

    Environment

    Windows Pro SP3

    Windows Terminal Server 2008

    With the help of Easy Print

    Error:

    Windows presentation foundation terminal server print w has encountered

    Tried solutions:

    I've updated. NETFramework 3.0 with SP and above versions.

    Tried swapping the TsWpfWrp.exe with that of a Windows 7 machine (it worked on other machines with the same question within the domain).

    MS ran patch to cause XPS

    Not a printer issue as another user in the same environment can print to this printer. The two seem to be the same configuration.

    RDP Client 6.1 installed.

    Resolution:

    The only resolution I can find is to uninstall SP3. Then works fine. Anyone got any ideas? Let me know if you need more information.

    Kind regards

    I came across this before. For me it turned out that I had a driver locally on the computer that worked for one and a generic driver on the other computer. Check the drivers installed and make sure you have the 64-bit and 32-bit installed on the server.

  • MS complete PC Backup and Restore for Vista Ultimate backup programs and files?

    I'm new to computers and there is still a lot to learn, I have an OS Vista Home Premium and I think to upgrade to Ultimate and I read that the complete PC Backup and restore can be used with MS Virtual Server to back up the computer. But what I read didn't specifically tell me if she saves some programs I downloaded, it says full backup but computer language being what it is I don't quite mean it as programs and files, which is what I'm interested in. So I can save my programs and files with this system? I don't want to go all the time, trouble and upgrade costs if I can only do half of what I want to do. Thanks a lot for any help on this idea.

    Hello

    When you perform a full backup of the computer, all programs, files and system settings are included.

    Read the articles for more details:

    Back up your programs, files and system settings

    http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-your-programs-system-settings-and-files

    See also:

    Back up and restore: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-and-restore-frequently-asked-questions

  • session rdp bi-ecrans for windows terminal server 2003

    I have a Server 2003 running Terminal Server and the client computer is Windows 7. I want to start the session rdp on both screens, but it did not work. I went to a few articles and done the following on the client computer:

    1. run mstsc/span
    2. in the RDP properties > allow all monitors
    3. use multimon: 1 in the rdp file

    This didn't work so I'm looking for help to solve this problem.

    Thank you

    Hi Brij,

    I suggest you to report this issue in support for Windows Server 2003 TechNet here Forums: http://technet.microsoft.com/en-us/windowsserver/ff354964

    Additional information.

    (Client Terminal Services 6.0) Remote Desktop connection: http://support.microsoft.com/kb/925876

    Thank you.

  • VSphere client on a server running terminal server

    Salvation; I think to offer vSphere Client access to some customers who wish to access a virtual computer a complete console.


    Someone at - configure a server terminal server (win2008 R2) and published the customer, so that the user can launch the vSphere client and access their virtual machine?

    As I read about it, it seems that a requirement is to have 6 Client RDP, which leaves the linux and Mac users, am I correct?
    Are there problems with it? In executing vCenter 4.1 at the moment, but will switch to the v5 this year.

    I tried to find some information about it, but can't find much.

    We provide the client vSphere (version 4.x and 5.0) on the servers Windows Terminal Server (Windows 2003 with Citrix XenApp 5.0) and it works flawlessy.

    Tested with all sorts of Citrix ICA clients, but also via RDP (including the old version of 5.1 client built into Windows XP).

    I never tested the RDP clients non - Windows, but I don't really expect any problems with them.

    -Andreas

  • An error occurred trying to implement a server application files

    Hello

    I have the problem with concurrent Manager logs and output (I'm on R12, windows) following:

    "An error occurred during the attempt to establish a connection to server application files with the FNDFS_APPLTOP_eviasl node. There may be a network configuration problem, or the TNS listener on the node as fndfs_appltop_eviasl cannot run. Please contact your system administrator. »

    There are a lot of similar topics and several metalink (including below) notes on this subject, but mine seems to be a slightly different question.


    Troubleshooting the "error occurred while he was trying to establish a connection to file Applications Server' [ID 117012.1]

    As you can see from the error message it says the name of the node is FNDFS_APPLTOP_eviasl but uname - n only returns eviasl. Whence this APPLTOP?

    J:\oracle\VIS\inst\apps\VIS_eviasl\ora\10.1.2\network\admin\tnsnames.ora contains entries like below one (entire file is very long, but it does contain no entry with APPLTOP):

    FNDFS_eviasl = (DESCRIPTION =
    (ADDRESS = (PROTOCOL = tcp (PORT = 1626))(HOST=eviasl))
    (CONNECT_DATA = (SID = FNDFS))
    )

    Another ORACLE_HOME tnsnames file contains only entry below:

    rep_eviasl_VIS_eviasl_TOOLS.xxxxxx.xxx = (Address = (Protocol = TCP)(Host=eviasl) (port = 1950))

    Yesterday, I had the problem with concurrent Manager, so I was running adcmclean to remedy and this problem started after that.

    Any help would be appreciated.

    Concerning
    Piotr

    Published by: PiotrekJ on July 2, 2012 12:07

    I'll run autocfg more later once again as well far as I remember he finished without any errors.

    Please clean table FND_NODES before running AutoConfig - how own non-existent nodes or addresses IP of FND_NODES [260887.1 ID]

    Thank you
    Hussein

Maybe you are looking for