RE: moving files to a date named folder
RE: moving files to a date named folder
- Subject: RE: moving files to a date named folder
- From: Nigel Garvey <email@hidden>
- Date: Thu, 15 May 2003 01:11:22 +0100
"Gabriel W. Trinity" wrote on Wed, 14 May 2003 08:44:18 -0400:
>
>>When I run it it generates no errors but appears to do nothing. The
>
>>portion of the script that names the folder after the date works as I
>
>>have tested it in another script. Here is what I have so far:
>
>>
>
>>set sourceDir to "Mac HD:FileMakerBackup"
>
>>tell application "Finder"
>
>[...]
>
>
>
>> set targetDir to make new folder at sourceDir with
>
>properties
>
>>{name:myStr}
>
>
>
>You should be getting an error on this line. The string variable
>
>'sourceDir' should have the Finder keyword 'folder' in front of it in
>
>this context.
>
>
>
> set targetDir to make new folder at folder sourceDir with properties
>
>{name:myStr}
>
Thank you for the suggestion but it's still a no go.
Sorry about this delayed response. The digest took eight hours to get
here.
The corrected script works brilliantly in OS 8.6 and 9.2.2 on my
machines. I've now tried it with 10.2.6 and it works brilliantly there
too - both with and without the correction! There must be some other
factor at work, outside the bit of script that you posted. The only thing
I can think of that would make it neither error nor perform any action is
if your source folder doesn't contain any files with names ending in
".fp5". Do they perhaps have some additional extension that isn't being
displayed on screen?
Other things that could be wrong - such as the source folder not existing
or the new folder already existing - should cause errors.
NG
_______________________________________________
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.