[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] VCard - Seek and destroy script



At 11:02 -0700 2000.08.11, John W Baxter wrote:
>At 11:58 -0400 8/11/2000, Chris Nandor wrote:
>>    my $count = 0;
>>    my $dir = catdir(
>>        FindFolder(kOnSystemDisk, kSystemFolderType),
>>        "Eudora Folder", "Attachments Folder"
>>    );
>
>I see some problems with that portion:
>
>1.  Given a "fresh" Mac containing a Documents folder, a freshly-downloaded
>Eudora will put the "Eudora Folder" into the Documents folder.  [So, I
>moved my Eudora Folder there some time ago.]  Eudora looks there first.

I didn't know where it would look, but in the AppleScript version, the
entire path including hard drive name was hard-coded, IIRC.  Scripts like
this are meant to be modified as needed.  :-)


>I would think that it would be easier and more reliable to hard code the
>path to where the .vcf files are likely to be, in a global variable set at
>the top of seek and destroy scripts.  (Of course, then a CD becomes a bad
>venue from which to run the script.)

Well, yes, you can set $dir there to be whatever you want.

-- 
Chris Nandor       |     pudge@pobox.com      |     http://pudge.net/
Andover.Net        | chris.nandor@andover.net | http://slashcode.com/

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org