Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

the Otter

macrumors member
Original poster
Jan 10, 2001
37
5
Lafayette, IN
Okay, folks. This is an incredibly weird one. I know this has worked before. I stripped the code down to its barest form, so here it is, in its entirety:

Code:
tell application "Finder"
	set theFolder to choose folder
	set fileList to every file in theFolder
end tell

When I run it—regardless of the folder I choose—I get the following message:

AppleScript Error
Finder got an error: Can’t get alias "[path to folder]".

Anyone got any thoughts? I’m banging my head against this one.
 

chown33

Moderator
Staff member
Aug 9, 2009
10,747
8,419
A sea of green
What OS version?

Where are you running it from? AppleScript Editor? Something else?

Exactly which folders have you tried it on? Be specific.

What user account are you logged in as?


Break It Down.

If you take out the second line, what is the resulting theFolder value? What is its type? Is it a string, an alias, a fnord, something else?

If you change the variable name from theFolder to myFolder or eineKleineFnordMusik, what happens?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.