Re: Reading key values in info.plist file iOS or Mac using XML library?

2020-11-12 Thread matthias rebbe via use-livecode
Are you using the xml library for that? Anyway, would you like to share your handler? Matthias - Matthias Rebbe Life Is Too Short For Boring Code > Am 13.11.2020 um 02:29 schrieb Paul Dupuis via use-livecode > : > > I have an on standaloneSaved handler that reads and writes an updated > info.

Re: Reading key values in info.plist file iOS or Mac using XML library?

2020-11-12 Thread Paul Dupuis via use-livecode
I have an on standaloneSaved handler that reads and writes an updated info.plist for my standalone that adds additional document types since the standalone builder only allows a single document type. On 11/12/2020 7:30 PM, matthias rebbe via use-livecode wrote: Hi, does anyone know if it is p

Re: Reading key values in info.plist file iOS or Mac using XML library?

2020-11-12 Thread matthias rebbe via use-livecode
- Matthias Rebbe Life Is Too Short For Boring Code > Am 13.11.2020 um 01:43 schrieb Bob Sneidar via use-livecode > : > > It is certainly possible! But depending on the complexity of the xml document > it may not be easy. I’ve posted before that I attempted to work with an > exported XML docume

Re: Reading key values in info.plist file iOS or Mac using XML library?

2020-11-12 Thread Bob Sneidar via use-livecode
It is certainly possible! But depending on the complexity of the xml document it may not be easy. I’ve posted before that I attempted to work with an exported XML document from a Toshiba Copier’s Templates (scan presets), but the document was mindbogglingly complex. One issue I ran into is keys

Reading key values in info.plist file iOS or Mac using XML library?

2020-11-12 Thread matthias rebbe via use-livecode
Hi, does anyone know if it is possible to use the xml library to read values from an info.plist file? Regards, Matthias - Matthias Rebbe Life Is Too Short For Boring Code ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit t

Re: How do I shorten this script? Use 'repeat with'?

2020-11-12 Thread William de Smet via use-livecode
I added 'the name of grc "k1" to the script and now it works. Thanks! set the loc of grc "k1" to cardWidth/2,cardHeight/2 put the name of grc "k1" into tPrevious repeat with x = 2 to 5 put "k" & x into tName set the topleft of grc tName to (item 1 of topright of grc tPrevious -1, item 2 of toprigh

Re: How do I shorten this script? Use 'repeat with'?

2020-11-12 Thread William de Smet via use-livecode
Yes, two variables must be the way! Your suggestion however throws an error (no such object). greetings, William Op do 12 nov. 2020 om 14:57 schreef : > You could use two variables like tName and tPrevious > > set the loc of grc "k1" to cardWidth/2,cardHeight/2 > put ”k1” into tPrevious >

Re: How do I shorten this script? Use 'repeat with'?

2020-11-12 Thread Håkan Liljegren via use-livecode
You could use two variables like tName and tPrevious set the loc of grc "k1" to cardWidth/2,cardHeight/2 put ”k1” into tPrevious repeat with i = 2 to 5    put ”k” & i into tName    set the topleft of grc tName to the topright of grc tPrevious    put tName into tPrevious end repeat Coding out of m

How do I shorten this script? Use 'repeat with'?

2020-11-12 Thread William de Smet via use-livecode
Hi there, Another question today. How do I shorten this script? set the loc of grc "k1" to cardWidth/2,cardHeight/2 set the topleft of grc "k2" to (item 1 of topright of grc "k1" -1, item 2 of topright of grc "k1") set the topleft of grc "k3" to (item 1 of topright of grc "k2" -1, item 2 of t

Re: Best way to add an image to an oval graphic?

2020-11-12 Thread William de Smet via use-livecode
Thanks all for directing me into a different approach! greetings, William Op wo 11 nov. 2020 om 19:19 schreef Richard Gaskin via use-livecode < use-livecode@lists.runrev.com>: > Using the backgroundPattern seems intuitive, but read the fine print: > image dimensions have very specific requir