• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Issue with files passed to subroutines
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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. |
----------------------------------------------------------------------


  • Prev by Date: Issue with files passed to subroutines
  • Next by Date: Re: Issue with files passed to subroutines
  • Previous by thread: Re: Issue with files passed to subroutines
  • Next by thread: saving text as XPress tags
  • Index(es):
    • Date
    • Thread