• 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: more tell/scoping problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: more tell/scoping problems


  • Subject: Re: more tell/scoping problems
  • From: Axel Luttgens <email@hidden>
  • Date: Sun, 27 Jun 2010 14:38:23 +0200

Le 24 juin 2010 à 21:52:54, tom wible a écrit :

> i'm trying to extract schedules from eyetv, storing them in a script object:

Hello Tom,

I'm not sure to fully understand what you're trying to achieve, on the basis of the sample code you've provided.
For example, what's the "tell me" supposed to do?


> [...]
>
> xkweez me? where did eyetv get told anything about my local uid? obviously i am totally ignorant of a/s's scoping majick:-( any clues would be appreciated

Anyway, unless I missed the point, it's rather easy to answer that question; let's consider a (very) simplified version of your code:

	tell application "EyeTV"
		tell program 1
			set eid to unique ID
			copy it to etvSched
			-- This one should error too... does it really work for you?
			-- copy eid to etvSched's UID
		end tell
	end tell
	etvSched's UID
	--> "EyeTV got an error: Can't get UID of program id 282773711."

Since etvSched has been set to a reference to an object of EyeTV, one is just asking EyeTV to do something (one is sending an AppleEvent to EyeTV)...

This isn't specific to EyeTV at all, but a general run-time behavior; for example:

	tell application "Finder" to set F to some file of desktop
	F's UID
	--> "Finder got an error: Can't get UID of document file..."

HTH,
Axel






 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >more tell/scoping problems (From: tom wible <email@hidden>)

  • Prev by Date: Re: article about Script servers by Bill Cheeseman
  • Next by Date: Re: more tell/scoping problems
  • Previous by thread: Re: more tell/scoping problems
  • Next by thread: Scripting Terminal
  • Index(es):
    • Date
    • Thread