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 

Location to Keywords Script?

 
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
gavingough



Joined: 08 Mar 2006
Posts: 23
Location: UK

PostPosted: Mon Apr 02, 2007 9:00 am    Post subject: Location to Keywords Script? Reply with quote

I've recently switched from PC to Mac. I had a PC script that copied annotations in the Location, City, State and Country fields into the Keywords field but haven't been able to find a similar script for Mac.

Does anyone have a script that will do this or can anyone tell me if it would be simple for me (with limited scripting skills) to convert my PC script?
_________________
Gavin Gough Photography
Back to top
View user's profile Send private message Visit poster's website
Daniel



Joined: 01 May 2004
Posts: 119
Location: France

PostPosted: Tue Apr 03, 2007 7:22 pm    Post subject: Reply with quote

Code:
tell window 1 of application "iView MediaPro"
   set MediaItems to selection
   repeat with TheMedia in MediaItems
      select TheMedia
      set KW to {}
      set end of KW to country of TheMedia
      set end of KW to state of TheMedia
      set end of KW to city of TheMedia
      set end of KW to location of TheMedia
      set Already to keywords of TheMedia
      set keywords of TheMedia to (Already & KW)
   end repeat
   select MediaItems
end tell

Enjoy.
_________________
G4 MDD 2x1 GHz, 2 Go (Mac OS 10.4.11) ; PB G4 15" 1,67 GHz, 1 Go (Mac OS 10.5.2)
Back to top
View user's profile Send private message Visit poster's website
gavingough



Joined: 08 Mar 2006
Posts: 23
Location: UK

PostPosted: Tue Apr 03, 2007 11:34 pm    Post subject: Reply with quote

Perfect Daniel.

Many thanks :D
_________________
Gavin Gough Photography
Back to top
View user's profile Send private message Visit poster's website
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