• 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
retrieving process name from a record
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

retrieving process name from a record


  • Subject: retrieving process name from a record
  • From: peter <email@hidden>
  • Date: Sun, 11 May 2003 11:47:14 +0200

I'm trying to extract the name of a process from a record using System
Events and then activating that process
the record structure looks like this:
set this_record to ,
{process:theProcess, bounds:window_bounds ,
, position:window_position} as record
set the end of the the application_records to this_record

I know that the record is stored ok but can't seem to extract the name
of the process
this is my latest attempt:

<snip>
repeat with i from (the count of the application_records) to 1 by -1
set this_record to item i of the application_records
set process theProcess of this_record to restoreApp

tell restoreApp
activate
end tell

I have made many different attempts at the syntax, mostly the compiler
tells me that restoreApp is not defined
my first time working with records
any suggestions much appreciated

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

  • Follow-Ups:
    • Re: retrieving process name from a record
      • From: John Delacour <email@hidden>
    • Re: retrieving process name from a record
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: triggering an AppleScript
  • Next by Date: A simple deletion script
  • Previous by thread: Sending a command from OS9 to OSX
  • Next by thread: Re: retrieving process name from a record
  • Index(es):
    • Date
    • Thread