INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Can't Access the MJFileAutomation "Year" Property  (Read 1432 times)

NZsMikeBerry

  • Member
  • *
  • Posts: 4
Can't Access the MJFileAutomation "Year" Property
« on: May 20, 2011, 04:05:56 pm »

I'm successfully using Media Center Automation Objects in Excel VB with one exception;

I can't seem to access (Read Or Write) the MJFileAutomation "Year" Property       (http://wiki.jriver.com/index.php/MJFileAutomation)

No problem with any other Properties eg

lLong = mcFAo.Get("Rating", False)
lResult = mcFAo.Set("Rating", 4)

both work fine, but

lLong = mcFAo.Get("Year", False) which should be the correct syntax gives a Compile Error

and

lString = mcFAo.Get("Year", False) compiles OK, but doesn't return a value

The Format parameter doesn't seem to make any difference either

Any clues?
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42373
  • Shoes gone again!
Re: Can't Access the MJFileAutomation "Year" Property
« Reply #1 on: May 20, 2011, 04:08:26 pm »

Year isn't a field in current versions of Media Center.

The only field is "Date", which can contain a year or a year with day and time.

You can also use the calculated field "Date (year)" which maps back to "Date".
Logged
Matt Ashland, JRiver Media Center

NZsMikeBerry

  • Member
  • *
  • Posts: 4
Re: Can't Access the MJFileAutomation "Year" Property
« Reply #2 on: May 22, 2011, 06:09:02 am »


MJFileAutomation
   2 Properties

number Year() (read / write)
Description: the year (i.e. 1997)

Thanks for your reply and will probably spend June 2011 decoding the Sticky Date

New Stitch;

Media Center Expression Language

Filtering a list of files using a search rule;

1)   [=Left([Comment],2)]="30"             works fine
2)   [=IsRange([Comment],29-31)]=1     works fine

3) subs 1) into 2)

[=IsRange([=Left([Comment],2)],29-31)]=1    no worky,

and all other combo's of [,=,(," that I've tried also seem to fail

Nesting is allowed according to MJ Documentation, but the devil is in the (poorly-documentaed) detail
Logged
Pages: [1]   Go Up