Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

This website is an archive and is no longer active
NeoOffice announcements have moved to the NeoOffice News website


Support
· Forums
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


  
NeoOffice :: View topic - Supplemental Programs Dev Info
Supplemental Programs Dev Info
 
   NeoOffice Forum Index -> NeoOffice Development
View previous topic :: View next topic  
Author Message
jakeOSX
Ninja
Ninja


Joined: Aug 12, 2003
Posts: 1373

PostPosted: Tue Aug 01, 2006 7:40 am    Post subject:

omg, really?

*pondering*

-j, the smiling ninja
Back to top
OPENSTEP
The One
The One


Joined: May 25, 2003
Posts: 4752
Location: Santa Barbara, CA

PostPosted: 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
Ninja


Joined: Aug 12, 2003
Posts: 1373

PostPosted: 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
Ninja


Joined: Aug 12, 2003
Posts: 1373

PostPosted: 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
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: 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 Wink

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? Razz

Smokey

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
jakeOSX
Ninja
Ninja


Joined: Aug 12, 2003
Posts: 1373

PostPosted: 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
Ninja


Joined: Aug 12, 2003
Posts: 1373

PostPosted: 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
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: 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
Ninja


Joined: Aug 12, 2003
Posts: 1373

PostPosted: 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
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Wed Aug 02, 2006 8:56 pm    Post subject:

jakeOSX wrote:
worked great smokey. is oo.o "org.openoffice.openoffice" ?

Nope, "org.openoffice.script" Razz

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...). Wink

Smokey

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
jakeOSX
Ninja
Ninja


Joined: Aug 12, 2003
Posts: 1373

PostPosted: 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
Ninja


Joined: Aug 12, 2003
Posts: 1373

PostPosted: Thu Aug 03, 2006 5:20 am    Post subject:

well, it is a start...

http://developer.apple.com/documentation/AppleScript/Conceptual/AppleScriptLangGuide/AppleScriptLanguageGuide.pdf

(thats a large PDF)

edited: found it, will have to try it tonight. this is a good thing.

smallrant on
why the hell does this thing still have pictures from OS9 in it??
smallrant off
Back to top
jakeOSX
Ninja
Ninja


Joined: Aug 12, 2003
Posts: 1373

PostPosted: 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
Ninja


Joined: Aug 12, 2003
Posts: 1373

PostPosted: Thu Aug 03, 2006 7:05 am    Post subject:

bookmarks for reference. (expect this to get edited and more added)

http://forums.macosxhints.com/archive/index.php/t-14366.html
http://www.macobserver.com/tips/applescript/2002/20020529.shtml
http://forums.macosxhints.com/showthread.php?t=37349

http://forums.macosxhints.com/archive/index.php/t-11512.html
http://www.nobleswan.com/applescript/AS_snippets.html
http://www.apple.com/applescript/guidebook/sbrt/pgs/sbrt.11.htm
http://www.satimage.fr/software/en/as_data_files.html

http://www.apple.com/applescript/guidebook/sbrt/pgs/sbrt.11.htm

File Processing
http://www.apple.com/applescript/guidebook/sbrt/pgs/sbrt.09.htm

http://tuvix.apple.com/documentation/AppleScript/Conceptual/StudioBuildingApps/chapter03/chapter_3_section_4.html#//apple_ref/doc/uid/20001250-TPXREF161
http://tuvix.apple.com/documentation/AppleScript/Conceptual/StudioBuildingApps/chapter12/chapter_12_section_2.html#//apple_ref/doc/uid/20001259-BCIIAFBC

"do shell script" info:
http://developer.apple.com/technotes/tn2002/tn2065.html

mad hatter section
http://builder.com.com/5100-6371-1044617.html
http://www.adp-gmbh.ch/perl/find.html
http://www.red-sweater.com/blog/26/rock-the-funky-finder-regex
http://forums.macosxhints.com/showthread.php?t=53897
http://forums.macosxhints.com/showthread.php?t=48968
http://forums.macosxhints.com/showthread.php?t=47972


Last edited by jakeOSX on Fri Aug 04, 2006 7:15 am; edited 9 times in total
Back to top
jakeOSX
Ninja
Ninja


Joined: Aug 12, 2003
Posts: 1373

PostPosted: 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" Razz
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
Display posts from previous:   
   NeoOffice Forum Index -> NeoOffice Development All times are GMT - 7 Hours
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 2 of 6

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.