View previous topic :: View next topic |
Author |
Message |
jakeOSX Ninja
Joined: Aug 12, 2003 Posts: 1373
|
Posted: Tue Aug 01, 2006 7:40 am Post subject: |
|
omg, really?
*pondering*
-j, the smiling ninja |
|
Back to top |
|
|
OPENSTEP The One
Joined: May 25, 2003 Posts: 4752 Location: Santa Barbara, CA
|
Posted: Tue Aug 01, 2006 8:25 am Post subject: |
|
Yup. And if you don't like Tk there are some other options like Cocoa -> Perl bridges:
http://sourceforge.net/projects/camelbones/
ed
/Perl really will take over the world
//well, maybe Neo will first...
///but Perl does have an apache module...
////and apache warriors are good matches for ninjas... |
|
Back to top |
|
|
jakeOSX Ninja
Joined: Aug 12, 2003 Posts: 1373
|
Posted: Tue Aug 01, 2006 9:33 am Post subject: |
|
apaches and ninjas??? living in harmony???
this may be the greatest day ever. |
|
Back to top |
|
|
jakeOSX Ninja
Joined: Aug 12, 2003 Posts: 1373
|
Posted: Tue Aug 01, 2006 3:58 pm Post subject: |
|
clip art update:
currently i have an applescript program which will do the following:
when you drag and drop a .zip file on it, it will unzip it (with admin priv) into the neo.app file, into the gallery
issues:
hard-coded neo path
there is a __MACOSX folder that annoys me
also, it looks like just putting them in the gallery isn't enough, that you have to 'select new theme' and pick the files... something i am pretty sure you didn't have to do in 1.0 (see how long it has been since i used the gallery??)
i have the code for rm-ing the __MACOSX folder, but rm scares me, so i haven't tested it yet.
however, a drag and drop of science.zip, added a new theme, i now have an ODT with a moon in it.
onwards and upwards.
-j, who should figure out what to do with this code... |
|
Back to top |
|
|
sardisson Town Crier
Joined: Feb 01, 2004 Posts: 4588
|
Posted: Tue Aug 01, 2006 4:26 pm Post subject: |
|
jakeOSX wrote: | hard-coded neo path |
There's code in Max's old help installer that you can use for this; you could also do "choose file" if you wanted to let the user select Neo...
jakeOSX wrote: | there is a __MACOSX folder that annoys me |
Yay BOMArchiveHelper
You could probably call BOMAH and have it do the unzipping rather than zip, or exclude the folder when unzipping somehow....
jakeOSX wrote: | -j, who should figure out what to do with this code... |
(L)GPL it and paste it into a pre block on the wiki?
Smokey _________________ "[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki |
|
Back to top |
|
|
jakeOSX Ninja
Joined: Aug 12, 2003 Posts: 1373
|
Posted: Tue Aug 01, 2006 4:38 pm Post subject: |
|
ok, where do i find max's stuff? i was thinking of using preferences for the location (and a neo/oo.o switch as well) though i have to learn how to use preferences....
as for the code, =) well of course GPL, but right now I am using XCode (that a good idea?) so hmm. maybe post the code and upload the xcode files?
anyone know where in the oo.o code the 'themes' for gallery are listed? (and if it would be worth it to try to auto add these as themes?)
-j |
|
Back to top |
|
|
jakeOSX Ninja
Joined: Aug 12, 2003 Posts: 1373
|
Posted: Tue Aug 01, 2006 6:41 pm Post subject: |
|
and now xcode hates me.
"on run" works in one program, but not the other?
("works" to denote functionality, not correct fuctionality)
*sigh*
-j |
|
Back to top |
|
|
sardisson Town Crier
Joined: Feb 01, 2004 Posts: 4588
|
Posted: Tue Aug 01, 2006 7:52 pm Post subject: |
|
jakeOSX wrote: | ok, where do i find max's stuff? |
Here
Hmm, I wonder if AS Studio contains some way to let you use the bundle identifier to find the app?
Edit: Oooh, Code: | tell application "Finder" to set myPath to (application file id "org.neooffice.neooffice" as string) | will get you the path to Neo...
Smokey _________________ "[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki |
|
Back to top |
|
|
jakeOSX Ninja
Joined: Aug 12, 2003 Posts: 1373
|
Posted: Wed Aug 02, 2006 5:56 pm Post subject: |
|
worked great smokey. is oo.o "org.openoffice.openoffice" ?
now i have to figure out how to get an array of files from a directory...
and i ditched xcode, going just to applescript studio, btw. everything works fine now. go figure.
and i think i am inspired to throw out a bit of the 'icon' script, but we'll see about that. =)
though i still have UI to deal with (array based check box lists in applescript? anyone?)
-j |
|
Back to top |
|
|
sardisson Town Crier
Joined: Feb 01, 2004 Posts: 4588
|
Posted: Wed Aug 02, 2006 8:56 pm Post subject: |
|
jakeOSX wrote: | worked great smokey. is oo.o "org.openoffice.openoffice" ? |
Nope, "org.openoffice.script"
jakeOSX wrote: | now i have to figure out how to get an array of files from a directory... |
Code: | contents of theFolder | ?
Quote: | though i still have UI to deal with (array based check box lists in applescript? anyone?) |
Maybe have a look at Terry's code in Start OpenOffice.org? That's one area I have no experience with (yet...).
Smokey _________________ "[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki |
|
Back to top |
|
|
jakeOSX Ninja
Joined: Aug 12, 2003 Posts: 1373
|
Posted: Thu Aug 03, 2006 5:09 am Post subject: |
|
i'll take a look, the idea is that instead of hard coding the /zip files in the clip art program it would pull the names from the folder and create a check box list, thus making the program changable by a non-programmer.
oh and i still need to rm those stupid __MACOSX folders... *lazer beam noises* |
|
Back to top |
|
|
jakeOSX Ninja
Joined: Aug 12, 2003 Posts: 1373
|
|
Back to top |
|
|
jakeOSX Ninja
Joined: Aug 12, 2003 Posts: 1373
|
Posted: Thu Aug 03, 2006 6:34 am Post subject: |
|
Here is the clip art part updated to fit reality. After V0.1 is final (so holding off on the GUI part now) I'll probably re-address the others as well with my new found super applescript knowledge.
Clip Art
Version 0.1
Drag and drop for external folders
Installs them in the office.app file
folders may be stored as .zip files
Preferences for either OO.oX11 or NeoOffice, and location
Version 0.2
Displays list of image folders in resource folder
Gives option (check boxes) for which to be installed
Adds the names of dropped folders to installed list
Version 0.3
Has ability to update via website available image folders
Addition of templates as well as images (same code as launcher) |
|
Back to top |
|
|
jakeOSX Ninja
Joined: Aug 12, 2003 Posts: 1373
|
|
Back to top |
|
|
jakeOSX Ninja
Joined: Aug 12, 2003 Posts: 1373
|
Posted: Thu Aug 03, 2006 11:04 am Post subject: |
|
sardisson wrote: | jakeOSX wrote: | worked great smokey. is oo.o "org.openoffice.openoffice" ? |
Nope, "org.openoffice.script"
Smokey |
(not at home, just thinking about this at work)
what happens if you have more than one copy of either installed? currently i have neo/j1.1, neo alpha installed, does .org.neooffice.neoffice only point to the last version installed? |
|
Back to top |
|
|
|