Copy/Save file to flash drive

I am trying to create a script where the user can initiate a
download/Save/copy of a stored file from my HDD to a flash drive.
It would seem that baCopyProgressFile would be ideal for this
situation, but I am authoring on a Intel MBP and it does not appear
that Buddy API is compatible with Intel Macs at this time. I only
need this projector to display on this MBP (this is really just a
quick proof of concept project that will be run locally), so any
suggestions or alternatives would be very helpful. Thanks.

> By main directory, I mean the directory where the
director project resides. I
> would like to copy a movie from this directory to the
root of the flash drive
> directory.
I'm still not understanding you. You want to copy a file from
the
directory where the projector is, or a sub-directory?
If you want to copy from a sub-directory, try something like:
on mouseUp me
tSource = "@/movies/480p.mov"
tDest = "/Volumes/bb/480p.mov"
OK = baCopyFileProgress(tSource, tDest, "IfNewer", "Copying
Movie to
disk...", "Cancel", 0)
if OK <> 0 then alert string(OK)
end
> I updated the code with yours, and now when I run the
movie, it gives me an
> error stating:
> Script error: String expected
> Alert OK
> 5
My mistake. I assumed that when you use 'alert' whatever you
are
alerting is auto-cast to a string. Try the above instead.
> If I adjust the code so that it copies the file from the
projects directory
> and pastes it into the same, then the file will copy
with the progress bar and
> after the copy is complete it gives me the same error
message as above, only
> with a '0' instead of a 5.
If you look in the docs for Buddy API, 0 means the operation
succeeded
and 5 means "Couldn't create directory for Dest file"
(suggesting your
destination path is incorrect)
Since you already use Buddy API I suggest you use a
combination of
baDiskList() and baDiskInfo(disk, "type") to determine which
is your
Flash drive and then use that disk as your root for copying.
For example:
on mouseUp me
lDisks = baDiskList()
lTargets = []
repeat with aDisk in lDisks
if baDiskInfo(aDisk, "type") = "Removable" then
-- found (potential) target
lTargets.append(aDisk)
end if
end repeat
case count(lTargets) of
0: -- no removable drives available to copy to
alert "Drive not found"
1:
tSource = "@/movies/480p.mov"
tDest = lTargets[1] & "480p.mov"
me.mCopyFile(tSource, tDest)
otherwise:
-- more than one removable drive available
-- you'll need to create a routine to determine
-- which one you want to copy to, or present the user with
-- a selection they can choose from
end case
end
on mCopyFile me, aSource, aDestination
OK = baCopyFileProgress(aSource, aDestination, "IfNewer",
"Copying
Movie to disk...", "Cancel", 0)
if OK <> 0 then alert string(OK)
end

Similar Messages

  • Down load files to flash drive/ mac book

    down loading music files onto flash drive so they are aranged the same as music library

    OK. I did.
    But here is the problem, it still doesn't save certain file on the flash drive. Most of the files are either jpg.,cwk.,pdf., or mov.
    The mov. won't even play. It works fine when i save files from a windows computer, but not when i save from my mac.
    I really have no idea why its doing this. I am aware that certain file can't be opened from a mac to a window, but i just don't know why, when i place a file into the flash drive icon and try to re-open it, it says the error message again (On my mac).
    Thanks.

  • The operation can't be completed because an unexped error occurred (error code-50).   This appears when I'm copying a file to the drive and then I wasn't able to edit to my drive.  Then this morning I can't open my project file.  What to do?

    Message: The operation can't be completed because an unexped error occurred (error code-50).
    This appears when I'm copying a file to the drive and then I wasn't able to edit to my drive.
    Then this morning I can't open my project file.  I get this message: The project appears to be damaged, it cannot be opened.
    What should I do!??
    I  have moved my project onto 2 different external hard-drives now.

    Hi There,
    After looking around for this error, it seems to be related to OS, we would recommend you to contact Apple support for this.
    Thanks,
    Atul Saini

  • I am having trouble with a video.  I have tried to copy it to a flash drive because it is too big to fit on a DVD, it says it is too large for the volumes format.  Please advise.

    I have done many DVD's for seniors for graduation so I am familier with Imovie.  I have just finished a projec that is a combination of video, music and stills.  I shared it through idvd.  Now I can't burn it to a dvd because it is too large.  It is too big even for a two sided disk.  I have researched it and i find that blue ray would be big enough.  Does apple offer  blue ray burner?  if so, what is the cost?  I tried another route and took my external hard drive to copy it to a PC.  there computer wouldn't recongize my drive.  I am assuming it is because it is formated for apple.  I tired copying it to a flash drive and and it says that it can't be copied because it is too large for the volume's format.  Suggestions?   PLEASE!!!!!

    Could the video be too big because of using too high a resolution?   480p is sufficient for a DVD.  the thread at:
    https://discussions.apple.com/thread/5868958?tstart=30
    may be of help.
    Apple does not support Blue ray - you have to use a thrid party application like Toast.
    To transfer the video to a PC you need a FAT-formatted hard drive (or of course a sufficiently big memory stick).
    You could also go via a network, via the cloud (eg Dropbox) or with 'Wetransfer" or similar.
    Geoff.

  • I have Photoshop elements 10 and have been trying to copy albums onto a flash drive to show slide show on my TV. 10 does not have a flash drive connection, so I am trying to put it on my harddrive. When I hit the export to harddrive or anything else, I ge

    I have Photoshop elements 10 and have been trying to copy albums onto a flash drive to show slide show on my TV. 10 does not have a flash drive connection, so I am trying to put it on my harddrive. When I hit the export to harddrive or anything else, I get a message saying it is trying to locate and reconnect missing photos, goes into a search mode and displays the identifiers of the located images. When I try to follow the directions for reconnecting I get nowhere. Can you help?

    Wrong forum; we don't do Elements here.
    You want:  Photoshop Elements

  • How can I copy outlook files to hard drive

    How can I copy large outlook files to the external hard drive with out formatting it?
    I currently have Macbook Pro Version OS X 10.9.5.
    I tried all the ways copying outlook files, but it says larger files cannot be transferred. My outlook file is about 16gb.
    Also tried trough Time Machine...Can anyone list of the steps here to copy these files to my hard drive?
    Later, I want to copy these files from hard drive to the new Macbook Pro.....need urgent help please !!!

    If your external drive is FAT32 (MS-DOS) format, it won't take file larger than 4GB. There's no way around that, I'm afraid.
    Matt

  • Can't copy large file to FW drive

    I'm not sure who to ask, but when I try to copy a 7gb file to an external Lacie FW drive I keep getting Error Code 1309. I've copied the file to another drive successfully, but wonder why I can't and what the Error Code means.
    Is there anything I can do besides reformat the drive? If not, and I must reformat shouldn't it be as HFS+?

    I assume your external drive is formatted FAT32, so it can be read by both a Mac & PC. However, FAT32 has a limitation of 4GB files due to the fact that 4GB is the largest 32-bit number, and the length of the file in the directory entry is 32-bits.
     Cheers, Tom

  • Layers demo says I cannnot save in jpeg format.  When I save pic to flash drive for someone else, will they be able to open without photoshop?

    Layers demo says I cannnot save in jpeg format.  When I save pic to flash drive for someone else, will they be able to open without photoshop?

    Layers demo says I cannnot save in jpeg format.  When I save pic to flash drive for someone else, will they be able to open without photoshop?

  • My mac won't save to a flash drive. It always says the disc is full when there is plenty of space. Solution pls?

    My mac won't save to a flash drive. It always says the disc is full when there is plenty of space. Solution pls?

    Hi and welcome to Apple Discussions,
    Did you get the flash drive from a reliable source. There are some available on the net that show a large capacity but are only 512 mb. or 1 gb. drives that have been altered to display a much larger capacity.
    Good luck,
    Alan

  • Problems copying files to Flash Drive

    I have been having problems copying files in the Finder to a flash drive when total storage exceeds 1gb or so. I recently obtained a 4gb flash drive and tried to copy about 1.5gb of files and the copy process just stops. I have had the same problem with an SD card in a card reader. If I put the SD card into a Sandisk mp3 player, which mounts as a drive, it will copy find. Also, if I take the card or flash drive to a PC, no problem.
    The same issue happens when I try to copy a lot of files from iTunes to a solid state drive. iTunes will go through a "calculation" process and simply not do the copy. It is not because of capacity. I can repeat the process to a folder on my hard drive and it works find. I then copy the folder to my mp3 player.
    I have been trying to do this for over a year now, hopeing that the next OS release would correct the problem, but it hasn't.
    Any ideas?

    In another thread, I found a suggestion to use Disk Utility to check and fix the thumb drive. I did this and there was a minor directory proablem withe the drive. Lo and behold, it now works!

  • Copying files to flash drive problem... really weird

    for some reason whenever i try to copy a folder that has a folder inside it to my flash drive or any flash drive, it says the folder already exists when infact it does not cause the drive was just formated many times.
    Ex. drag folder named (photoshop) with folder (projects) inside, and some mp3s, it tells me that folder projects is already there... and copys the mp3s fine..
    Whats causing this error ?

    mh434 wrote:
    I've looked at dozens of complaints about this, spanning several years, but I haven't found a solution.
    I have a complilation of songs on my PC (Win7 64) on iTunes (version 11.1.5.5).  I've been trying to find a way to copy my favorite playlist & contents to a memory card or flash drive. 
    Every piece of advice I've seen says to highlight, drag, and drop from iTunes into the other drive.  Of course, there ARE no external drives visible in iTunes.  It doesn't recognize any non-Apple devices or drives.  So, drag n' drop is impossible.
    So, I thought I'd try to do it outside of iTunes.  Nope - all of my music files on my PC are linked to iTunes...when I try to locate any of my music, iTunes automatically launches, and no other drives are accessible.
    So, I thought I'd try exporting my favorite playlist & contents.  However, nowhere can I find out if this will delete the playlist in iTunes at the same time (which, obviously, I don't want to do, as I'd lose the music on my iPad and iPhone at the next synch).
    Can anyone help with this?
    Thanks,
    Mike
    Mike,
    Arrange your screen so that iTunes is open in half the screen, and the folder representing the flash drive is open in the other half.
    Highlight the tracks you want in iTunes.  Drag them from there to the open folder.

  • Music files from flash drive to new itunes

    ive been slowly transfering music from my old PC to a music library on my MBP.  the weird thing is that on a fair number of folders, when they transfer, some songs seem to get left behind and not copied.  i'll have an album with 11 tracks, and move it as usual to the flash drive, then when its gets loaded onto the mac three or four of them are gone.  i must be really behind the times, because i cant fathom the file allocations that itunes uses.  ill load the batman begins soundtrack folder into the music folder, and it will split it into to two separate files - one with the original folder title and another with the artist listed and consolidiating them manually doesnt work.  it just resplits the **** thing - am i still to PC-if-fied?

    andyrh68 wrote:
    my itunes library information has gone for good
    ... unless you have a backup copy of your *iTunes library file*. do you use time machine or any other means of backing up ?
    What is the easiest way to link the now newly installed itunes to these external files?
    if the answer to above question is no, you will have to start from scratch, i.e. no playcounts, ratings, playlists, etc. from your old library will be there.
    assuming you have *copy files to ... when adding to library* checked in preferences > advanced, option-drag the folder containing your media files into an open iTunes window. iTunes will index the path to the location of the original files, but won't copy them physically.
    btw, pointing *iTunes media folder location* to another spot will only tell iTunes where to put newly added content, not where the current content is.
    JGG

  • Script for XCOPY files to flash drive

    I'm trying to make a batch file to copy all %localuser% folders on an agent's laptop, including a few other directories inside appdata  to a flash drive and have it prompt for the drive letter of that flash drive then prompt to make a directory to copy
    the files/folders to.  The idea is to copy all these directories without having to go in and browse to all these folders every time I want to back up and move an agent's stuff to a new computer.  Would also be great to have the same batch reverse
    the copy on the new computer.  
    Any help would be much appreciated.

    XCOPY is a system utility and not a script. Just follow the help to get it to copy. Post your questions about XCOPY in the platform forum.  You should also search for articles on using XCOPY and ROBOCOPY.  RoboCopy has a simple file that tells
    it what to do.  Search fro posts on RoboCopy.
    ¯\_(ツ)_/¯

  • Using Automator and Applescript to search and move files to flash drive

    I've used applescript and automator to do simple tasks like watch folders and move files and rename files, but that is about the extent. I am wondering if it is possible to set up a automator service or app that will do several things.
    When a flash drive is plugged it, it will ask for a file to be searched for, then it will search a predetermined directory for files with the word or number in them and then it will copy the found files to the mounted flash drive.
    Any help would be greatly appriciated!
    Thanks!

    As a start, you can use launchd to run a script when a volume is mounted:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
              <key>Label</key>
              <string>com.tonyt.LaunchOnVolMount</string>
              <key>ProgramArguments</key>
              <array>
                        <string>LaunchOnVolMount.sh</string>
              </array>
              <key>QueueDirectories</key>
              <array/>
              <key>StartOnMount</key>
              <true/>
              <key>WatchPaths</key>
              <array/>
    </dict>
    </plist>
    You can then have the LaunchOnVolMount.sh script perform the tasks you need.
    You can incorporate Applescript within the Bash script with osascript:
    #!/bin/bash
    answer=$( osascript -e 'tell app "System Events" to display dialog "What file do you want to search for?" default answer "" ' )
    echo $answer
    I beleive that you can also call an Applescript from launchd

  • How to sync files between flash drive .

    I have a 4 gig flash drive and create files at school and on my iMac. I start the year off will all of my classes having separate folders with additonal folders to orginize such as a project name or homework and copy that folder "school work" to my flash drive so i have the same thing. But as the year goes on and I have more homework it is confusing to know which device the file is on (computer or flash) I do not want to use drop box or google docs or any other online service. The school does not allow that and I don' want it. Just the flash drive. On the pc I coded in visuel basic (08) a program that on the desktop when clicked on when launched there was 2 buttons. Copy flash drive contents to computer ( folder school work) and it added new content ( merge) rather than replacing whole folder with the whole flash drive. And vice versa with computer to flash drive. It worked but not efficiently. I know the Mac can do better. Can someone please tell me what to do? I would like it when the flash drive. (NOT JUST ANY FLASHDRIVE BUT THAT FLASDRIVE) is plugged in to sync and merge the data so they are iddentical. Using Automator or AppleScript. Please help any advice would be very much appreciated. Also. I have Last years data for school and some other files on there and want to start it fresh with nothing on it so i can create the folder school work.should i just delete all the files manually ( I have no problem doing that) or use disk utility? What is the advantage of disk utility and will It harm the flash drive in any way ( such as making it Mac os extend instead of fat32? I need it fat 32 for all the PCs at school. Thank you in advance

    Here's a pretty thorough rundown on the options available: http://en.wikipedia.org/wiki/Revision_control
    A very simple solution is to get a Dropbox account. Then you can keep the file(s) in your dropbox and have them available in class or at home. Remember to make a backup on a regular basis.

Maybe you are looking for

  • How to delete empty row without validation error in ADF Table(EMP)

    Hi Everyone, I am using EMP Table in ADF jspx page to insert the data into database.when i insert a row into table by createInsert operation,it inserting the row.But I need to delete that row immediately with out entering any value. But it showing so

  • Unable to connect Panasonic HDTV to home network via Wi-Fi

    I am unable to connect my Panasonic TC-L37E3 to the internet via Wi-Fi.  I purchased the additional Wi-Fi adapter for the set, and while setting up the connection I am able to see my wireless network on the TV. I have a basic WEP key, but I am unable

  • ForgeComponent.cleanDirs unable to clear "processing"

    Hi, We're using MDEX 6.2.2 with PlatformServices 6.1.2 on a Red Hat Enterprise Linux Server v5.7. We've started facing a strange problem lately. While executing a baseline, it fails at Forge.getIncomingData. It fails while trying to move a sub-folder

  • How can I "hear" the outgoing fax?

    When I fax a document from my MBP, using File/Print/Fax PDF, how can I hear the dial town and fax tone (so I can tell if it's going out, or it's busy, or whatever)?

  • Programme hault and lock

    i am facing problem in my programme which was stuck randomly, sometime after 12 hours or sometime after 25 hours. when my programme was stuck send SIGQUIT it returns me following log, can anyone suggest me what could be the reason. Full thread dump J