Re: Putting file counts into comments
Re: Putting file counts into comments
- Subject: Re: Putting file counts into comments
- From: Gnarlodious <email@hidden>
- Date: Tue, 20 Apr 2004 22:28:06 -0600
Speaking of file comments, it's very irritating when I copy a file to
another machine and it has forgotten the comment. Does anyone else notice
this?
-- Gnarlie
Entity Michael Vogt spoke thus:
>
I'm attempting to put a file count into the comments of a folder. The
>
script will run when any new items are added to the folder, so I want
>
to make this a folder action. The script runs, but only counts to 6,
>
despite there being more than 500 files in my test folder. Script
>
follows:
>
>
on adding folder items to this_folder after receiving added_items
>
tell application "Finder"
>
set the_folder to the name of this_folder -- I got nothing using
>
this_folder
>
count files in the_folder -- only counts to 6, although there are
>
500+ files in test folder.
>
set file_count to result
>
display dialog file_count -- displays 6
>
if comment of the_folder contains "/" then -- some folders have a
>
date as part of their comments. Don't want to lose that.
>
set comment of the_folder to comment + " " + file_count
>
else
>
set comment of the_folder to file_count
>
end if
>
end tell
>
beep 2
>
end adding folder items to
>
>
Any ideas would be welcome.
>
>
>
There are only 10 type of people in the world, those that understand
>
binary, and those that don't.
>
_______________________________________________
>
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.
_______________________________________________
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.