getclip'' returns '<UNSET>' before any text has been placed on the clipboard (i.e. cut or copied).
It looks like it's not working on your kit. Can you copy/paste text either way between other apps besides jios? As I tried to make clear, I know nothing about the feature except (a) it works between my Mac (Sonoma 14.0) and my iOS device (iPad (6th generation), iPadOS Version 17.1.2) (b) I only discovered it recently by accident, and did nothing to enable it (…that I know of) I don't own an iPhone, so I can't tell you if it's iPadOS-only. Mike uses it (if I understand him correctly), but he says it occasionally crashes jios. So perhaps he can tell you more. On Thu, 28 Dec 2023 at 04:40, Brian Schott <schott.br...@gmail.com> wrote: > Ian (et al), > > I tried your getclip'' experiment. When I execute getclip'' , the return > was <UNSET> . There was no alert at the desktop, asking for my permission > to paste, I got the same <UNSET> . > > And then when I enter "myfoldtext" on jios I see "4 : <UNSET>" . So maybe > I'm doing something wrong. > > I have successfully entered 2 scripts in a subdirectory named "nn" and > somehow I saved them. But I don't really know how they got saved from the > editing window where I pasted them. I got the editing window open using ".o > but I don't see a save option, or a run option or a load option from there. > > Thanks, > > On Wed, Dec 27, 2023 at 5:34 PM Ian Clark <earthspo...@gmail.com> wrote: > > > @ Brian > > You say you don't use iCloud, and you've given up on iOS Files app. > > You're denying yourself the most robust way to move J scripts between > your > > iOS device and your Mac. > > And (probably) the easiest to setup and use. Though that may not be > saying > > much. > > > > If I had 10 coders in my team, I'd put one of them full-time on exploring > > all the ways of moving text between iOS and Mac. Because it'll be a > > full-time job. If you don't believe me, ask me why… but I won't wallow in > > the shambles here. > > > > With iOS 17.1 a new feature appeared unannounced. If you copy text to the > > Mac's general pasteboard (what used to be called the clipboard), it's > > visible to the general pasteboard of any iOS device on your Wi-fi hub, > and > > vice-versa. > > I don't trust it. It looks too good to be true – and it is, because Mike > > tells me it can crash iOS. > > > > But if you want to play with this shiny new Apple feature, here's a > recipe > > to get you started: > > > > Launch jios on your iOS device. > > Launch jqt on your Mac and pick a suitable multi-line verb, e.g foldtext > > > > foldtext > > > > 4 : 0 > > > > if. 0 e. $y do. '' return. end. > > > > y=. ; x&foldpara each cutpara y > > > > y }.~ - (LF ~: |.y) i. 1 > > > > ) > > > > > > Clip-copy just the body of the verb, i.e. > > > > > > if. 0 e. $y do. '' return. end. > > > > y=. ; x&foldpara each cutpara y > > > > y }.~ - (LF ~: |.y) i. 1 > > > > > > In the Home scene of jios, enter the sentence: > > > > > > ] z=: getclip'' > > > > if. 0 e. $y do. '' return. end. > > > > y=. ; x&foldpara each cutpara y > > > > y }.~ - (LF ~: |.y) i. 1 > > > > > > (you may see an alert asking your permission to paste from your Mac > before > > it returns the copied text.) > > > > > > Now reconstitute your verb like this: > > > > > > myfoldtext=: 4 : z > > > > > > Knowing how Edit works, using getclip is sturdier than pasting text (even > > ascii text) directly into the Edit scene. Right now I'm working on a > > replacement for the UIKit object (UITextView) used by Edit and Home, > > because it's a can of worms. It was never designed to do anything so > simple > > as emulate a tty. > > > > > > BTW, to minimize the risk of jios crashing, free up as much memory as you > > can by terminating all other running apps. > > > > And if you simply must paste more than 1 line of J code into Edit, avoid > > bracketing it with {{…}} or even 3 : 0 … ) > > > > Safer still, turn off Syntax Coloring. > > > > > > > > On Wed, 27 Dec 2023 at 18:49, 'Mike Day' via Programming < > > programm...@jsoftware.com> wrote: > > > > > Glad that was useful. > > > > > > You mention copy & paste. Ian will have wise things to say about this, > > > which I won't understand, but one of the things that "appears" to > > > wipe my Jios ipad installation is copy from elsewhere or from the J > > > session > > > itself, and paste into a J edit session, even when bracketed by > > > {{)n and }} > > > > > > Cheers, > > > > > > Mike > > > > > > Sent from my iPad > > > > > > > On 27 Dec 2023, at 01:28, Brian Schott <schott.br...@gmail.com> > wrote: > > > > > > > > Mike and Ian, > > > > > > > > Mike, your answer was very helpful because I could not get the iphone > > to > > > be > > > > recognized by my desktop Mac when I tried to link them with a USB > cable > > > (I > > > > don't use icloud). An error keeps occurring, so I gave up on the ios > > > files > > > > app. But your mention of a folder creation button made me go back to > > the > > > > files app and it seems to work fine to create the folder and then I > can > > > use > > > > the j open command to create a blank file in the new directory using > > some > > > > of the paths suggested by Ian's message. > > > > > > > > I'm still shaky on saving the copy/pasted text (from the email I use > to > > > > transport the text) into the 'open'ed (edited) file. I cannot find a > > save > > > > command after the paste, so I'm not sure if it's saved. But the load > > > seems > > > > to get the file so it must be saved, I guess. > > > > > > > > Thanks to you both, > > > > > > > >> On Tue, Dec 26, 2023 at 5:36 PM 'Mike Day' via Programming < > > > >> programm...@jsoftware.com> wrote: > > > >> > > > >> Don't know about iphone, but I've got a couple of > folders/directories > > > >> under ~user in my iPad installation of Jios; here's the official > > info: > > > >> JVERSION > > > >> Engine: j903/j64/iOS > > > >> beta-k: GPL3/2023-04-16T23:21:00 > > > >> Platform: iOS/iPadOS > > > >> Version: 903.2 57 > > > >> Installer: App Store > > > >> Contact: www.jsoftware.com > > > >> > > > >> I think I "created" them by copying folders with scripts from > iCloud, > > > but > > > >> I see there is a folder-create icon in the Files app's display. > > > >> > > > >> Hope that's useful, > > > >> > > > >> Mike > > > >> > > > >> Sent from my iPad > > > >> > > > >>>> On 26 Dec 2023, at 20:48, Brian Schott <schott.br...@gmail.com> > > > wrote: > > > >>> > > > >>> Can the user create a subdirectory under j/user and fill it with > > .ijs > > > >> files > > > >>> in j90x on iphone? > > > >>> > > > >>> Thanks, > > > >>> > > > >>> -- > > > >>> (B=) > > > >>> > > ---------------------------------------------------------------------- > > > >>> For information about J forums see > > http://www.jsoftware.com/forums.htm > > > >> > ---------------------------------------------------------------------- > > > >> 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 > > > > > ---------------------------------------------------------------------- > > 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