Re: Removable Disks (wrapping code)
Re: Removable Disks (wrapping code)
- Subject: Re: Removable Disks (wrapping code)
- From: email@hidden (Christopher Rosado)
- Date: Mon, 10 Nov 2003 20:39:48 -0500
Hey Chris-
I thought I replied to you earlier... My apologies that you didn't
receive my response.
I'll be using this script with 10.3...
I wasn't sure how to accomplish what Jay had done with my If statement
replacement. Very clean! Far more efficient than what I was doing.
The only portion I've changed from Jay's code is
move (disk x's entire contents's files whose file type is in
{"TIFF", "JPEG"}) to folder (desktopPath & newFolderName)
to this:
move (disk x's entire contents's files whose name does not start
with "." and (file type is "TIFF" or file type is "JPEG" or name
extension is "tiff" or name extension is "tif" or name extension is
"jpeg" or name extension is "jpg")) to folder (desktopPath &
newFolderName)
For some reason, the code wasn't extracting from my CF cards, just from
CDs I had burned. My guess is that the CF cards read as DOS formatted
and need to be found through extension instead of type. I grabbed the
above from a script that Apple bundled into 10.3.
--Christopher
On Nov 10, 2003, at 6:11 PM, Christopher Stone wrote:
>
At 12:48 -0500 11/10/2003, Christopher Rosado wrought:
>
>
> Hi Jay-
>
>
>
> Your code worked out really well-thanks! I've been working on
>
> comprehending what you have sent and have a few questions.
>
______________________________________________________________________
>
>
Hello Christopher,
>
>
I don't think you responded to my last query.
>
>
If you're using a Mac OS X box, then Jay's code is very inefficient.
>
>
For instance:
>
>
set folderName to do shell script "date +'%Y/%d/%m folder'"
>
>
Beats hell out of if...if...if...
>
>
>
Chris
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.