Indigo Rose Software

Go Back   Indigo Rose Software Forums > Old Versions > AutoPlay Media Studio 5.0

Reply
 
Thread Tools Display Modes
  #1  
Old 11-10-2003
sferguson sferguson is offline
Indigo Rose Customer
 
Join Date: Oct 2003
Posts: 164
translating a 4.0 script... String.CountDelimitedStrings

Hi gang,

I'm attempting to recreate a sample project which TJ_Tigger
recently helped me find, and which Worm was ever so generous to originate and share.

How might the following translate in 5.0?


4.0 script:
//Get the number of files that match the search
%NumFiles% = String.CountDelimitedStrings ("%Files%", ";;")

5.0 script:
?
Reply With Quote
  #2  
Old 11-10-2003
TJ_Tigger's Avatar
TJ_Tigger TJ_Tigger is offline
Indigo Rose Customer
 
Join Date: Sep 2002
Location: Sol 3
Posts: 3,188
In AMS5 you will be using the Files.Find function but the information returned is no longer in a delimited string but a table. So now you can use the Table.Count action to count the number of files that were found. The Picture Viewer app that I posted in another thread does that.
Reply With Quote
  #3  
Old 11-10-2003
sferguson sferguson is offline
Indigo Rose Customer
 
Join Date: Oct 2003
Posts: 164
AWESOME.

Thanks!

Now that you bring it to my attention, I feel like the character in that 1980's commercial for tomato juice - "Wow, I should've had a V8!"

I just spent yesterday morning speed-reading over the stuff about tables in the Scripting Guide for AMS 5. However, since a good portion of the hands-on script writing work is new territory for me, I'm cruising up the AMS power-curve at a 90% angle on a project that has built-up some significant internal momentum.

(There's nothin quite like a good old baptism by fire when introducing yourself to a new app or dev environment.)

Anyway, thanks again. I'm looking forward to "sharing-the-love" ASAP, when I can bring more brainstorms/suggestions than green-stick questions to the table.




Best,
-Scott


P.S. AMS has some of the lightest, easiest to read, most applicable and insightful user guides and documentation I have ever come accross. Three cheers for the documentation team (and this forum, of course) for great work, and probably the most practicle form of marketing on the planet!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -6. The time now is 05:17 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software