RE: referring to a folder
RE: referring to a folder
- Subject: RE: referring to a folder
- From: Brian Mather <email@hidden>
- Date: Wed, 26 Nov 2003 15:04:36 -0500
Michelle Steiner wrote:
>
>
Message: 3
>
From: Michelle Steiner <email@hidden>
>
Subject: Re: Referring to a folder
>
Date: Wed, 26 Nov 2003 10:47:03 -0700
>
To: Applescript Users <email@hidden>
>
>
On Nov 26, 2003, at 9:32 AM, Brian Mather wrote:
>
>
> Problem is I receive this error:
>
> Can't make <<class cfol>> (<<class cfol "large" of <<class cdis>>
>
> "Scratch"
>
> of application "finder") of application "Finder" into a item.
>
>
It would help us if you indicated what line of code had the
>
error. I'm
>
guessing that it was this one:
>
>
if imageHeight >= 400 then move theFile to folder largefolder
>
>
The problem is that you already defined the folder in this line:
>
>
set largefolder to folder "large" of disk "Scratch"
>
>
So all you would need to do is remove the word "folder" from the
>
if-then statement, so it becomes this:
>
>
if imageHeight >= 400 then move theFile to largefolder
>
>
At least, that's what I think the problem is.
>
>
--Michelle
>
>
--
>
We're not human beings having a spiritual experience.
>
We're spiritual beings having a human experience.
Absolutely correct, Michelle. Thank you. I'm puzzled why things worked when
I let the user set the largefolder instead of trying to hard code it
(beginning lines read set the large folder to choose folder instead of set
the largefolder to "foo" of 'Bar"). The duplicitous move theFile to folder
largefolder didn't hiccup at all.
_______________________________________________
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.