Re: OSX help
Re: OSX help
- Subject: Re: OSX help
- From: Andrew Oliver <email@hidden>
- Date: Fri, 10 Oct 2003 15:48:14 -0700
On 10/10/03 3:32 PM, "Peter D. Kincaid" <email@hidden> wrote:
>
All the script does is rename files when they are dropped on the dropplet
You might *think* that's what it does, but it doesn't.
Specifically, you *completely* ignore the files that are dropped on the
droplet since you:
>
set fileList to every item of the selection
So whatever is dropped on is ignored. Instead, you process whatever is
selected at the time this line of the code is run.
Eliminate this line and the rest should work correctly, and process the
dropped files that are passed into the 'on open fileList' handler.
Andrew
:)
>
Hey people, I have never written a script for OSX, I was hoping you could
>
help me.
>
>
The following is a script that I use on os9.2 that works. When I try and use
>
it on OSX it doesnt do anything.
>
All the script does is rename files when they are dropped on the dropplet.
>
>
on open fileList
>
tell application "Finder"
>
--set sourceFolder to choose folder
>
set fileList to every item of the selection
>
repeat with afile in fileList
>
set fileList to name of afile
>
set fileList to text from character 8 to -1 of fileList
>
set name of afile to fileList
>
end repeat
>
end tell
>
end open
_______________________________________________
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: | |
| >OSX help (From: "Peter D. Kincaid" <email@hidden>) |