Re: Issue with files passed to subroutines
Re: Issue with files passed to subroutines
- Subject: Re: Issue with files passed to subroutines
- From: Michelle Steiner <email@hidden>
- Date: Sat, 8 Sep 2001 07:56:20 -0700
On 9/8/01 7:43 AM, Irwin Poche <email@hidden> wrote:
>
but attempting to do the same thing with a subroutine does not...
>
>
tell application "Finder"
>
activate
>
set sFiles to files in selection
>
my check_file(item 1 of sFiles)
>
end tell
>
>
on check_file(the_file)
>
set itemComment to comment of the_file
>
log itemComment
>
end check_file
It needs to be like this:
on check_file(the_file)
tell application "Finder" to set itemComment to comment of the_file
log itemComment
end check_file
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------