Font Reserve 3.x.x

I am looking for some example code to applescript Font Reserve 3.x.x.

I tried google, read the manuals, quick starts… and the asdictionary, but it would be nice if someone could point me to some code snippets (maybe even of an earlier version of Font Reserve).

Kind regards.

I’ve done some font reserve stuff. What did you have in mind?

Thanks for your reply.

For example i am trying to dynamically add a new font set. My guess is i have to use “with transaction” maybe “session” to tell “database 1”? to make a new font set. But i can’t figure out how to get it to work.

Hope you can shed some light on this for me.

Kind regards.

Wow, i spent several hours on this couple of lines script this afternoon… and i could not get it to work.

Now, tonight a couple of minutes and it seems to do the trick.

The result:


tell application "Font Reserve Database"
	set mySession to make new session
	
	tell database 1
		with transaction mySession
			set mySet to make new font set with properties {name:"test"}
		end transaction
	end tell
	
	delete mySession
end tell