retrieving process name from a record
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.