With Jmol 12.3.28 (just released) you can now do this:

frame 1.2
frame ID "myname"

frame "myname"

thus equating any name you want with an identifying name. Maybe you could do that as you load the file.

Other than that, you could just run though the list you are getting there and find the name.

Bob

On Wed, May 30, 2012 at 12:05 PM, Daniel Carbajo <daniel.carbajo@gmail.com> wrote:
What I mean is getting the frame of a specific file. I am developing a function which accepts file names as inputs... I have already thought of a workaround; I can use†_lastFrame, foreach of each frame and†getProperty("modelInfo.models.file")[i] and do my thing only if modelInfo... is equal to the file name input. What do you think?


2012/5/30 Angel HerrŠez <angel.herraez@uah.es>
from http://wiki.jmol.org/index.php/Creating_Movies :

num_frames = getProperty("modelInfo.modelCount")



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users




--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900