Hi Brian,

I tried a variety of ways to address the files and when none worked I looked at 
the je definition.

je_z_=: 3 : 0
assert. 0~:#y
if. -.+./y e.'/.' do. y=. '~/user/',y,'.ijs' end.
if. -.fexist y do. ('NB. new file created',LF) fwrite y end.
smoutput'<ioscmd>ed ',y,LF,LF,~jpath y
i.0 0
)

I did try rewriting this to allow for the root files position but I couldn't 
come up with the proper way to reference.

Late breaking news: As I was working through my reply I took another look at 
that fourth line and by substituting '/file.ijs' for y … it worked! 
I think before I had missed that the .ijs extension was required when the rest 
of the verb is removed.

Thanks so much for your help

Cheers, bob

On 2012-05-17, at 1:00 PM, Brian Schott wrote:

> Bob,
> 
> Can't you edit them by prefixing with '/'?
> 
> On Thu, May 17, 2012 at 3:29 PM, bob therriault <bobtherria...@mac.com> wrote:
>> Hi everyone,
>> 
>> When I add files from my desktop through iTunes they are put in the root as 
>> expected. The question is how do I edit those files? If I use je then the 
>> ~user path is added and thus a new file is created, since the file I want to 
>> edit exists back at the root.
>> 
>> Solutions to my challenge could include:
>> 
>> Ways to access files in the root from the J app.
>> Ways to move the files from the desktop into the user folder in the J app.
>> 
>> I can do this by copying the original file and emailing it to the iPad, then 
>> opening the email and copying and pasting into the new file using je but I 
>> was hoping for a more straightforward approach.
>> 
>> Down the road my goal is to be able to add the docs to the add ons within 
>> the J folder and then have local access to the help files while running J. 
>> (but for now I would just like to work with the files I have already created 
>> on my desktop)
>> 
>> Cheers, bob
>> 
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
> 
> 
> 
> -- 
> (B=) <-----my sig
> Brian Schott
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to