Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Referring to a folder



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.
_______________________________________________
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.

References: 
 >Referring to a folder (From: Brian Mather <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.