Re: [MacRuby-devel] Appscript and pathname translation

2012-04-19 Thread Robert Schaaf
Thanks Al, This works like a charm. I can guarantee that no directories will get through, but as to avoiding HFS, I'm afraid Excel wants it. Now if only there was a way to speed up Macruby's load time. It would be nice if someone forked the project to make Macruby a system service launched at

Re: [MacRuby-devel] Appscript and pathname translation

2012-04-18 Thread Alan Skipp
Hi Bob, If at all possible I'd try and avoid the conversion. If this is not feasible, this could help: def posix_from_hfs(hfs) url = CFURLCreateWithFileSystemPath(nil, hfs, KCFURLHFSPathStyle, false) # final argument is whether the path is a directory or not url.path end def hfs_from_po

[MacRuby-devel] Appscript and pathname translation

2012-04-18 Thread Robert Schaaf
Hello again, Macruby community! I'm trying to rewrite a program that drives Excel with appscript, and running into the problem of translating back and forth between HFS and POSIX pathnames. The old Appscript module included a MacTypes module, and these two translations were provided. 1. to go