Re: Stupid Newbie Question
Re: Stupid Newbie Question
- Subject: Re: Stupid Newbie Question
- From: "J. Downs" <email@hidden>
- Date: Mon, 18 Feb 2008 13:32:09 -0600
Thanks for your response, Gary. Sorry in advance for continuing to
be so dense.
Your code throws an error, so I'm not sure why that isn't of some
use to
you. Error: Can't make name of alias "..." into type string.
Should this error actually appear somewhere? Because when the script
runs (as a Folder Action, of course, since running it in the Script
Editor does nothing), I never get an error of any kind. To be
certain the script was running at all, I inserted a display dialog
command at the beginning of the script, which did pop up. But once
it gets to the tell application "Finder" handler, nothing.
As per your advice, I modified the core of the repeat structure to
the following, without success:
set theInfo to (get info for alias eachFile)
display dialog theInfo buttons {"OK"} default button 1
I will take a closer look at Apple's code. I based my original
script (without reference to "alias") on one found online, which may
have been an error, I suppose.
Or, maybe I think I understand. You only want to work on certain
files, so
you have to filter all the added items.
So, you're saying that this type of approach isn't going to work (not
code, but more of a logic model):
If this item is an image, move it into the "Images" folder.
If this item is an application, move it into the "Applications" folder.
If this item is a web location, move it into the "URLs" folder.
etc.
Or can the type identifier be used for such a purpose? I don't need
to be specific, and if I can get away with it, I would much rather
use a generic evaluation (e.g., "This file is an image") than create
a monstrous filtering system that checks for every known type of
image file (based on name extension, for example).
Thanks,
J.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden