• 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: dereferencing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dereferencing


  • Subject: Re: dereferencing
  • From: Steven Majewski <email@hidden>
  • Date: Tue, 2 Sep 2003 19:39:14 -0400

On Tuesday, September 2, 2003, at 04:20 PM, Paul Berkowitz wrote:

On 9/2/03 12:08 PM, "Steven Majewski" <email@hidden> wrote:

Is there any generic dereferencing syntax in Applescript ?

'contents of', or usually (not always) set a variable to the reference which
evaluates it to its value, or use the explicitly 'get' with parentheses

contents of (field 1 of window 1 of application ... )
--should work

set aVariable to (field 1 of window 1 of application ... )
-- [may or may not work: may still be the reference]

get field 1 of (get window 1) of application ...
-- [may or may not work: may still be the reference]



Thanks, Paul.


I found 'contents of' in the manual shortly after I sent the first message,
but it didn't work either.

I had tried some variations of set & get with the returned reference.

However, I found that I *can* get at the value using the literal statement:

'get field 1 as text'

within a 'tell media item 1 of window 1 of application...' block.

rather than trying to dereference the reference.

It looks like it's an application bug, but there may be a way around it as long
as I avoid catching references.

-- Steve Majewski
_______________________________________________
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.

References: 
 >Re: dereferencing (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: [ANN] eunotice latest
  • Next by Date: Re: Mail.app - dictionary implementation questions.
  • Previous by thread: Re: dereferencing
  • Next by thread: tell application "FileMaker Pro/Developer"
  • Index(es):
    • Date
    • Thread