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 

Script to set Date Created to Created Date

 
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
emccainaz



Joined: 28 Jun 2004
Posts: 24
Location: Tucson, Arizona, USA

PostPosted: Mon Apr 16, 2007 6:57 pm    Post subject: Script to set Date Created to Created Date Reply with quote

I am looking for a script to set the Annotations>Date Created to the date specified in Media Info>Created. Does something already exist? If not, can someone point me in the right direction by telling me how those two fields are named by AppleScript?

Thanks,

Edward McCain
Tucson, AZ
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Old Toad



Joined: 30 Mar 2004
Posts: 2480
Location: Temecula, CA

PostPosted: Mon Apr 16, 2007 9:54 pm    Post subject: Reply with quote

Have you tried the iView page containing the available scripts? http://www.iview-multimedia.com/downloads/scripts.php

Also there's a French site with a number of AppleScripts: http://iview.free.fr/products/mediapro3/scripts_iview.html.

These will be a good start.

Do you Twango?
_________________
15" MBP 2.16 Ghz; G5 Dual-core 2GHz, 4G RAM, 250G HD; Mac OS X (10.5.3); 750/250GB FW HDs; QT 7.4.5P; iVMP 3.1.3 (42E6); Photoshop CS3


Last edited by Old Toad on Mon Apr 16, 2007 10:20 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
emccainaz



Joined: 28 Jun 2004
Posts: 24
Location: Tucson, Arizona, USA

PostPosted: Mon Apr 16, 2007 10:13 pm    Post subject: No Par-Lay Reply with quote

Sorry, I don't speak French and have no idea what these scripts do.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Old Toad



Joined: 30 Mar 2004
Posts: 2480
Location: Temecula, CA

PostPosted: Mon Apr 16, 2007 10:16 pm    Post subject: Reply with quote

Neither do it buy you can get an idea from the folders they are in and if you open the with Script Editor, they are all in English and have some use comments in them. Since you're interested in annotations look at those in the folder that gets downloaded.

I tried the link I had posted and it didn't work. Try this one for the site: http://iview.free.fr/products/mediapro3/scripts_iview.html and here's the link to directly download all of the scripts in one package - Scrips iView MediaPro 3

Look in the folder titled "Annotations". Most of the titles are close to the english words so you should be able to figure them out.
_________________
15" MBP 2.16 Ghz; G5 Dual-core 2GHz, 4G RAM, 250G HD; Mac OS X (10.5.3); 750/250GB FW HDs; QT 7.4.5P; iVMP 3.1.3 (42E6); Photoshop CS3
Back to top
View user's profile Send private message Send e-mail Visit poster's website
emccainaz



Joined: 28 Jun 2004
Posts: 24
Location: Tucson, Arizona, USA

PostPosted: Tue Apr 17, 2007 1:55 pm    Post subject: Create to Date Created Reply with quote

Here's what I came up with, but I can't get the Applescript to work:

tell application "iView MediaPro"
set selectedItems to selection of catalog 1
end tell

repeat with mediaItem in selectedItems
tell application "iView MediaPro"
set creation date to name of mediaItem
set event date of mediaItem to creation date
end tell
end repeat
beep 3

I get an error message when I try to run this script. Can anyone help me get this to work?

Thanks,

Edwrad McCain
Back to top
View user's profile Send private message Send e-mail Visit poster's website
johnbeardy



Joined: 22 Nov 2004
Posts: 1137
Location: Dulwich, South ("Sarf") London

PostPosted: Thu Apr 19, 2007 9:27 am    Post subject: Reply with quote

Edward

Read through your script (and what the error message says). You are trying to force the filename into a date field.

John
Code:
tell application "iView MediaPro"
      set event date of mediaItem to capture date of mediaItem
   end tell

_________________
PC and Mac too
iView scripts & utilities
Back to top
View user's profile Send private message Visit poster's website
emccainaz



Joined: 28 Jun 2004
Posts: 24
Location: Tucson, Arizona, USA

PostPosted: Thu Apr 19, 2007 4:59 pm    Post subject: Reply with quote

Does that work for you. I have changed the script as follows, but it won't work for me:

tell application "iView MediaPro"
set selectedItems to selection of catalog 1
end tell

repeat with mediaItem in selectedItems
tell application "iView MediaPro"
set event date of mediaItem to capture date of mediaItem
end tell
end repeat
Back to top
View user's profile Send private message Send e-mail Visit poster's website
emccainaz



Joined: 28 Jun 2004
Posts: 24
Location: Tucson, Arizona, USA

PostPosted: Thu Apr 19, 2007 5:39 pm    Post subject: Getting the Media Info>Created Value Reply with quote

I'm wondering if there really is a way to get the Media Info>Created value out. There is a value there in iVMP, but when I look at the AppleScript Dictionary, there is no entry for Created. Where does the value I see in iVMP Media Info>Created come from and how do I get it so I can pass that value to Annotations>Date Created?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Tim Plumb
iView staff
iView staff


Joined: 18 Mar 2004
Posts: 72

PostPosted: Thu May 10, 2007 11:19 pm    Post subject: Reply with quote

Please see this reply to Edward's other post on the subject.
Back to top
View user's profile Send private message Send e-mail 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