|Apr 5, 2011, 03:38 PM||#1|
AppleScript: list files in folder
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:
tell application "Finder" set theFolder to choose folder set fileList to every file in theFolder end tell
Finder got an error: Can’t get alias "[path to folder]".
Anyone got any thoughts? I’m banging my head against this one.
“Aunque el mono se vista de seda, mono se queda.”
|Apr 5, 2011, 03:49 PM||#2|
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?
|applescript, error, files, folder|
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Applescript: renaming files in a system folder without having to enter admin password||Compton||Mac Programming||7||Sep 27, 2011 04:43 AM|
|how can calculate total file size of all .rtf files in folder?||newformac||Mac Programming||11||Jun 9, 2011 11:37 PM|
|finder does not show files or item count in folder||bloomage||OS X||0||Apr 27, 2011 12:55 AM|
|Can't access files in folder to unlock file and trash||meishach MOORE||Mac OS X Server, Xserve, and Networking||3||Aug 30, 2010 08:30 AM|
|List files by Folders then Files, like Windows.||louish||OS X||10||Jan 23, 2007 04:34 PM|
All times are GMT -5. The time now is 03:48 AM.