Copy file from mounted DMG to the Applications folder?

I'm wanting to copy file (application) from a mounted DMG to the Applications folder. Something like:
tell application "Finder"
try
copy "Volumes:Dropbox Installer:Dropbox.app" to folder "Volumes:Macintosh HD:Applications"
end try
end tell
(But that doesn't work).
Preferably overwriting the existing application in that folder. Any help would be greatly appreciated.

tell application "Finder"
    duplicate file "Volumes:S001TEST:S001-S001c-TEST.zip" to folder "Volumes:Macintosh HD:Applications" with replacing
end tell
I tried this principle in Applescript (Mavericks) and received error...
Finder got an error: Can’t set folder "Volumes:Macintosh HD:Applications" to file "Volumes:S001TEST:S001-S001c-TEST.zip".
"001TEST" is a disk image with filename of "S001TEST.dmg"
Any ideas why this won't work?

Similar Messages

  • Can't copy files from mounted DMG. What's up??

    So all of a sudden, I can't copy files from mounted DMG files. It's strange because if there is one file and I drag it to another location, like desktop, it won't copy. If I drag 2 files from the mounted DMG to the desktop one of them copies. If I drag 3, then 2 copy... it's always all but one of the files... never all of them.
    I've tried repairing permissions but nothing works. I'm at a loss...
    thanks
    D
    iMac Core Duo 17", 1.5 gig RAM   Mac OS X (10.4.8)  

    Try holding option when you drag the files. This tells the mac to move the files to the desktop of your computer not the desktop folder of the DMG (usually a hidden folder)
    If that doesn't work it may be that you need administrative privileges to move the files. Make sure you are logged on as as an administrator by selecting the account tab in system preferences and making sure it says "admin" under your user name. Log on to or create an administration account then try moving the file.
    Hope this helps, let me know
    Thom

  • What happened is that my internet connection was not good so i downloaded .ipsw file from a torrent but now i cannot get it to update my ipad because ios 5.0.1 is out i tried copying files to ipad updates in the itunes folder but no help

    what happened is that my internet connection was not good so i downloaded .ipsw file from a torrent but now i cannot get it to update my ipad because ios 5.0.1 is out i tried copying files to ipad updates in the itunes folder but it still asked me to download a 700mb software update
    plz help

    If you downloaded the correct version for your iPad model (and the different models have different ipsw files), then you should be able to navigate to it in iTunes by pressing and holding the shift key on Windows (command key on Mac) when clicking the Check For Updates button.
    Message was edited by: King_Penguin

  • I have macbook pro 13" I want to know how to copy files from my mac to the external Toshiba Hard Drive. I can't even delete files from my external hard drive. please help me my macbook HD is almost full and I have to copy my images to the Toshiba HD

    I have macbook pro 13" I want to know how to copy files from my mac to the external Toshiba Hard Drive. I can't even delete files from my external hard drive. please help me my macbook HD is almost full and I have to copy my images to the Toshiba HD

    To delete files from your external HDD, attach it to your MBP and drag the unwanted files to trash and then empty trash.
    Then you select the files that you want to transfer by 'drag and drop' to the external HDD and trash the files on your MBP.
    Ciao.

  • Copy file from FTP server to sap application server

    Hi,
    I am able to copy a particular file from FTP server to sap application server using FTP_CONNECT, FTP_COMMAND and FTP_DISCONNECT. But here my problem is, it copies into default application server path(DIR_HIOME). I want to copy into specified folder in the application server. How can I specify the required destination path.
    Can you please suggest how to achieve this.
    Thanks,
    Shiva Kankanala

    try something like this:
    data: user(30) type c value 'ftpuser', "ftp username
                  pwd(30) type c value 'ftppass', "ftp password
                  host(64) type c value '255.255.255.255', "ftp server IP
                  cmd1(80) type c value 'lcd /dump', "location on app server where you want to copy the file
                  cmd2(80) type c value 'get', "specifies you are going to get the file from ftp server
                  dest like rfcdes-rfcdest value 'SAPFTPA',
                  file(15) type c value 'file.txt'. "specifies file that you want to get from ftp server
    data: hdl type i,
            key type i value 26101957,
            slen type i.
    slen = strlen( pwd ).
    call function 'HTTP_SCRAMBLE'
        EXPORTING
          source      = pwd
          sourcelen   = slen
          key         = key
        IMPORTING
          destination = pwd.
    call function 'FTP_CONNECT'
        EXPORTING
          user            = user
          password        = pwd
          host            = host
          rfc_destination = dest
        IMPORTING
          handle          = hdl.
    call function 'FTP_COMMAND'
        EXPORTING
          handle        = hdl
          command       = cmd1
        TABLES
          data          = result
        EXCEPTIONS
          command_error = 1
          tcpip_error   = 2.
      loop at result.
        write at / result-line.
      endloop.
    CONCATENATE cmd2 file INTO cmd2 SEPARATED BY SPACE.
    call function 'FTP_COMMAND'
          EXPORTING
            handle        = hdl
            command       = cmd2
          TABLES
            data          = result
          EXCEPTIONS
            command_error = 1
            tcpip_error   = 2.
        loop at result.
          write at / result-line.
        endloop.
        refresh result.

  • Copying file from mounted disc image.

    Hi
    I'm trying to copy a file from a mounted .iso file but it says i don't have permission to do so ( error code -39).
    Is there any way around this?
    Thanks in advance.
    George.

    Its a folder containg many files, most of which it copies fine then it gets to one particular file and the copying stops giving the following error.
    ' The Finder can’t complete the operation because some data in “Session Strings Pro020.nkx” can’t be read or written.
    (Error code -36) '
    My mistake it's error code -36!
    I've tried copying to my internal and external harddrives.
    The file that fails to copy is 1.05gb it copies just 250mb of it before stopping.

  • Copy files from mounted server

    I am new to ARD. I am used to using Timbuktu. In Timbuktu I can choose exchange files, and get a list that I can browse, including any attached drives and mounted volumes. I can navigate right to the file I want, and then copy it.
    I cant seem to find a easy way to browse files in ARD. I can do a search for files, but even then I can seem to be able to just browse files from a mounted volume.
    Is there any way to do this in ARD?

    Sorry, but there is no file browser in ARD (other than taking control of a system and browsing through it's own Finder). You have to search for a file, either with the File Search or, if the clients are running Mac OS X, a Spotlight search.

  • HT4889 i suddenly can´t copy file from my mac to the time machine. Why?

    suddenly i cant copy files/movies from my macbook pro to my time machine anymore. Do anybody know how to make this possible again?

    Have you logged on with a different username.. ?? That will block access using the previous user login.
    The best bet is to fully reboot everything.. wonderful things happen when you clear all the cobwebs.. old logins.. etc.
    If you still have issues, come back to us. Although I find it hard to imagine the TC will automagically change security settings. Make sure you login to the Mac with the same username as you did when you moved the files to the TC.

  • How can i copy files from my ipod to the i tunes?

    i just reformatted my laptop, then i installed a new itune. my problem is how can i copy all my files from ipod to the new itune. I cant sync it with the new itune or else it will be erase all my files in the ipod..what can i do ? can you pls. help me.....

    Connect your iPod to your computer. If it is set to update automatically you'll get a message that it is linked to a different library and asking if you want to link to this one and replace all your songs etc, press "Cancel". Pressing "Erase and Sync" will irretrievably remove all the songs from your iPod. Your iPod should appear in the iTunes source list from where you can change the update setting to manual and use your iPod without the risk of accidentally erasing it. Also when using most of the utilities listed below your iPod needs to be enabled for disc use, changing to manual update will do this by default. Check the "manually manage music and videos" box in Summary then press the Apply button: Managing content manually on iPod
    Once you are safely connected there are a few things you can do to restore your iTunes from the iPod. If you have any iTMS purchases the transfer of purchased content from the iPod to authorised computers was introduced with iTunes 7. A paragraph on it has been added to this article: Transfer iTunes Store purchases using iPod
    The transfer of non iTMS content such as songs imported from CD is designed by default to be one way from iTunes to iPod. However there is a manual method of accessing the iPod's hard drive and copying songs back to iTunes on Windows. The procedure is a bit involved and was written long before iTunes 7 so it requires a little adaptation, also it won't recover playlists but if you're interested it's posted in this thread: MacMuse - iPod to iTunes
    If you prefer something more automated then there are a number of third party utilities that you can use to retrieve the music files and playlists from your iPod. This is just a selection, you'll find that they have varying degrees of functionality and some will transfer movies, videos, photos and games as well. Have a look at the web pages and documentation, they are generally quite straightforward. You can also read reviews of some of them here: Wired News - Rescue Your Stranded Tunes
    YamiPod Mac and Windows Versions
    iGadget Windows Only
    iPod Access Mac and Windows Versions
    Music Rescue Mac & Windows
    iPodCopy Mac and Windows Versions
    TuneJack Windows Only
    Whichever of these retrieval methods you choose, keep your iPod in manual mode until you have reloaded your iTunes and you are happy with your playlists etc then it will be safe to return it auto-sync. I would also advise that you get yourself an external hard drive and back your stuff up in case you have problems again. Relying on an iPod as your sole backup is not a good idea and external drives are comparatively inexpensive these days you can get loads of storage for a reasonable outlay.

  • Copy files from mounted pc volume to mac

    Hi all,
    I have a problem with the following script:
    var xmlfile = File.openDialog("Choose XML");
    var result = File(xmlfile).copy("~/Desktop/" + xmlfile.name);
    This result is false (can't be copied) when the file is an a mounted PC Volume. (/Users/Public/Documents/)
    In applescript this works fine:
    tell application "Finder"   
         set xmlfile to (choose file)
         move xmlfile to desktop
    end tell
    The source is on the same Volume.
    Does javascript have a problem with accessing remote volumes?
    Can someone help?
    Kind regards,
    Michel

    Answered in your other thread. Please don't double post, it can lead to people wasting their time answering a question which has already been answered in the other thread.

  • I have a Macbook Pro, my external hardrive appears on disk utilities as writeable but when I try to copy files from my Mac to the hardrive it won't copy. Also, when I go to info on the hardrive it says read only :=S

    As I said......

    Are you saying that in the Get Info window you don't see a section like this:
    I'm asking about what you see listed under the Privilege column.

  • Copying a file from a .DMG to Desktop causes MBP to reboot?!?!

    Here's a good one. I was installing my apps on my new MBP 2.16 and I'm being very careful, only installing apps that are universal or works well with Rosetta.
    I installed Toast 7.0.1, downloaded 7.0.2 (Roxio says they have some of the interal components in universal form) so while moving the new Toast.app from the DMG, the MBP would reboot when 80 of 114 MB are transfered. Just a quick reboot, no messages or anything. I was able to do this 3 times straight. The copy from the DMG to the Applications folder caused the reboot, but when I copied it to the Desktop, it worked.
    Here's one possibly contributing issue, my MBP battery was DOA. It won't hold a charge but the MBP works well when connected to AC. I verified that the MagSafe connector was clean and had a good connection (MBP owners would attest that it's nearly impossible to not get a good connection).
    The only other issue that I could think of is heat. Could heat cause a reboot? I had it on for about an hour installing apps, but it was sitting on a roadtools riser.
    thanks...Lee

    Lee,
    Quite wierd that it seems to be happening when copying that file and you were able reproduce it three times. Has this happened at other times?
    Since you stated your battery was DOA, I wonder if this somehow corrupted the PRAM and/or Power Manager Unit? Try resetting both to see if this takes care of the issue. Below is the link with instructions on how to do this:
    http://docs.info.apple.com/article.html?artnum=303319

  • Copying application to the application folder

    Cant drag downloades software (not from app store) into the application folder.   Skype for example...
    I get the small Plus sign like it wants to copy the file, but nothing happens.  I can make it copy, it just gets stuck to my cursor...

    Try to copy the file then paste it to the folder.  Select the file then go to your edit menu click on copy, open your app folder then click edit paste. 

  • No longer able to group applications into folders in the Applications folder?

    I would like to group applications in Folders in the Applications Folder, which I have dragged back to to the dock.  This is the way I had managed apps in Snow Leopard.  I can create folders no problem,but when I try to drag apps into these folders, a copy is always left behind in the Applications folder.  How do I move the app?   I am not able to delete the copies that are left behind.
    My Account has Admin rights, and this is a clean install into an empty partition....I wanted to check out Lion before moving from SL.
    Launchpad is pretty, but I prefer the Applications Folder.

    It does cause problems in a number of circumstances.
    In this forum alone, there are several threads with many users who used Setup Assistant or Migration Assistant to transfer their stuff, ended up with lots of duplicate apps because of it, and had great difficulty finding and deleting the duplicates.
    There have also been folks whose apps did't get updated, and Adobe apps that wouldn't run at all.
    Again, it depends on the apps and circumstances.

  • Copy file from client PC to server in a web deployed application

    I have developed one application using Oracle forms 6i, which is deployed on the web server.
    I run this application from a client PC in Internet Explorer using internet.
    I want to copy one file from the client PC to the web server.
    I have done following things
    - Created a shared folder on the server and given full rights to every one on this folder
    - I use 'net use' command in my program to connect to this shared folder
    - I use copy command to copy file from local client pc to server. This copy command I am executing using host command of my programming (PL/SQL: eg. host('copy abc.txt \\server\share\') )
    But this does not work.
    When I do the same thing in command window, it works.
    (ie. Start-Run cmd to open command window and then type the above copy command)
    Can you please tell me, how to copy a file from client PC to the sever in Web deployed application?
    Thanks

    I downloaded D2KWUtil from the link suggested by you. It has very nice example demo form. But the documentation provided says following
    Using D2KWUTIL in Web Deployed Applications
    The use of this library is not supported with Web deployed applications.
    In a web deployment scenario not all functions within D2KWUTIL will work. Any function that interacts with the User Interface (such as those in the WIN_API_DIALOG package) will fail.
    Any interaction with the O/S by other functions will all be executed on the NT server and will act within, or return information pertinant to, the environment on that machine. For instance GET_COMPUTER_NAME will return the Server’s name, not the name of the computer that the Client browser is running on. Likewise COPY_FILE will copy files in the Forms Server not on the Client.
    Functions such as those in WIN_API_BITOP will continue to work without change.
    so this will not work in web deployed application.
    Any other suggestion?
    Thanks

Maybe you are looking for

  • Car bluetooth no longer able to play podcasts through stereo interface after 8.1

    I have a 2012 Scion Tc (with the pioneer touchscreen audio interface) and an Ipad Air. Since upgrading to 8.1, I have lost all functionality to choose and play podcasts (and specifically podcasts, music works fine) through my car interface. I can nav

  • Hi, i try to migrate the HSC0 from version 6.1 to version 7.1 HELP !!!

    Hi, i try to migrate the HSC0 from version 6.1 to version 7.1 and take this opportunity to consult on the installation of HSC0 where the PARMLIB member LKEYINFO (LKEYDEF) Product for this new version V 7.1 is telling me no longer supported, please I

  • How do I keep BI Publisher running when I log out of the console in linux?

    I am using the standalone version of BI Publisher and I want to keep it running even after I log out of the console. I have a script that starts it so I typed 'nohup start_bipub.sh &' but when I log out it shuts down anyway. I started my apache serve

  • Bex : Get KF result in a formula variable

    Hi, I'd like to get the global result of a Key Figure into a formula variable but i see no way to do it... This is to use this variable in an exception so as to color the individual results in comparison with the result caught in the variable... if u

  • Attention NNTP users

    If you access our forums via the NNTP interface, you need to make one little change as soon as possible in your reader to ensure continuity in using our forums. The essentials are outlined in the NNTP section of our forum FAQ (NetIQ, Novell, SUSE, op