sprintf strings are great when you need to force column widths and coerce values into a different representation, but they're overkill when you're inserting a single value that isn't formatted. Rather than rely on sprintf or % ("format") to build the strings, instead use simple interpolation. Thumb = folder + '/'+ 'thumb.png' # PNG supports transparency It is entirely possible this could work for files as well. * note, for my application I intended to set folder icons. ![]() icon file to be present within the modified folder, perhaps there is a specific way of converting a jpg or png to the. Is it possible to change the icon of a Mac folder using a set of Ruby commands? I believe that OSX requires a.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |