iView home page
iView Multimedia Forum Index

FAQ FAQ     SearchSearch     MemberlistMemberlist     UsergroupsUsergroups    RegisterRegister  
ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Using variable name with annotation name

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    iView Multimedia Forum Index -> AppleScript
View previous topic :: View next topic  
Author Message
MtnBiker



Joined: 04 Apr 2004
Posts: 81

PostPosted: Thu Jul 21, 2005 7:53 pm    Post subject: Using variable name with annotation name Reply with quote

I want to do something like

Code:
set tempLocation to the location of the annotations of theItem


but I want to use a variable name in the place of "location" so I can use the same script over again for other variables. Can this be done? I'm not sure if this is a generic AppleScript question or is specific to IVMP.

theItem is defined (somehow--somehow because it's not explicitly defined, but is available for some uses) in this handler from the IVMP folks:

Code:
on GetSelection()
   set selectedItems to {}
   tell application "iView MediaPro"
      if catalog 1 exists then set selectedItems to the selection of catalog 1
   end tell
   return selectedItems
end GetSelection
[/code]
Back to top
View user's profile Send private message
Peter_A



Joined: 07 May 2004
Posts: 124
Location: USA

PostPosted: Tue Aug 30, 2005 12:36 am    Post subject: Reply with quote

try this:

set tempAnnot to "Location"
set tempLocation to the tempAnnot of the annotations of theItem
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    iView Multimedia Forum Index -> AppleScript All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



  © iView Multimedia Ltd. | All Rights Reserved Privacy Policy | Copyright | Site Map