[Ruby API] Bug Mac - Sketchup.get_resource_path
-
Sketchup.get_resource_path "Materials.strings"returns an empty string on Mac in SU8. Same applies to "Styles.strings" etc.
Sketchup.get_resource_path '' returns:
'/Library/Application Support/Google SketchUp 8/SketchUp/Resources/en-US'The file is located in 'Sketchup.app/Contents/Resources/English.lproj/Materials.strings'
I haven't checked in SU2013.
-
(Sketchup.get_resource_path '' ) << '/Materials.strings'=>
/Applications/SketchUp 2013/SketchUp.app/Contents/Resources/Content/Resources/en-US/Materials.stringsworks in v2013 on my mac.
john
-
Sketchup.get_resource_path "Materials.strings"doesn't work in SU2013.
Thanks for the workaround, although it works only for SU2013.
-
SU v8 and v7 on my mac
edit, it returns a path to nowhere... but I knew I had it somewhere...
matPath = (ENV[ "IG_ROOT"]).dup << "/English.lproj/Materials.strings"works on v8 and v2013 at least
john
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement