• 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
Tell Statement Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Tell Statement Problem


  • Subject: Tell Statement Problem
  • From: Bastard Child <email@hidden>
  • Date: Sat, 28 Jan 2006 00:04:51 -0800

Hi All,

I've got some code here that doesn't appear to be working, and I can't
figure out why. The closest thing I can come up with, is that the
"tell" statement doesn't like the "theFolder" variable. Whenever I run
the code in the Script Editor, I draw the following error:

Finder got an error: Expected a reference.

Here's the code:

-----
set theFolder to choose folder

parseFolder(theFolder)

on parseFolder(aFolder)
	tell application "Finder"
		set theNumItems to number of items in aFolder
	end tell
end parseFolder
-----

Any ideas?

--
The Bastard Child Has Spoken
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Tell Statement Problem
      • From: Michelle Steiner <email@hidden>
    • Re: Tell Statement Problem
      • From: Paul Berkowitz <email@hidden>
    • Re: Tell Statement Problem
      • From: Matthew Smith <email@hidden>
  • Prev by Date: Re: Entourage Scripting Question
  • Next by Date: Re: Tell Statement Problem
  • Previous by thread: Re: Entourage Scripting Question
  • Next by thread: Re: Tell Statement Problem
  • Index(es):
    • Date
    • Thread