• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How can I differentiate a jump drive folder from a HD folder of the same name?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I differentiate a jump drive folder from a HD folder of the same name?


  • Subject: Re: How can I differentiate a jump drive folder from a HD folder of the same name?
  • From: KOENIG Yvan <email@hidden>
  • Date: Fri, 10 Sep 2010 16:22:10 +0200


Le 10 sept. 2010 à 15:53, Jim Brandt a écrit :

How can I differentiate a jump drive folder from a HD folder of the same name?

I have a jump drive that I have partitioned into three "drives"  with names that match corresponding folders on my hard drives. I use this jump drive on my MacBook to download and save files in various folders on these partitions. I do this so I can use the same scripts that normally run on my desktop machine.

I now need to write a script that will recognize the jump drive and all its files, and sync the various folders to ones on the desktop machine. This is so I can collect the data while I'm on vacation (using the MacBook) but can put the files back on the desktop machine as if I had been there all the time.

So, for example, I have a folder, named abc, on the hard drive HD1. I have a folder abc on jump drive partition HD1. I want to copy all files that exist in this folder from the jump drive to the corresponding folder on the HD.

My question: Is there a way to differentiate, in a script, a volume as a jump drive as opposed to being on the HD so I can create Finder copy statements for each file in each folder I need to sync?

Jim Brandt

tell application "System Events"
ejectable of disk "the_disk:"
end tell

The internal HD will return false
The jumpdrive one will returtn true

Yvan KOENIG (VALLAURIS, France) vendredi 10 septembre 2010 16:22:03


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >How can I differentiate a jump drive folder from a HD folder of the same name? (From: Jim Brandt <email@hidden>)

  • Prev by Date: How can I differentiate a jump drive folder from a HD folder of the same name?
  • Next by Date: Re: How can I differentiate a jump drive folder from a HD folder of the same name?
  • Previous by thread: How can I differentiate a jump drive folder from a HD folder of the same name?
  • Next by thread: Re: How can I differentiate a jump drive folder from a HD folder of the same name?
  • Index(es):
    • Date
    • Thread