« first day (1740 days earlier)      last day (2734 days later) » 

12:34 AM
@halirutan I want it to set the global variable wget to Print["wget"]
 
1:07 AM
@William Like this?
setToPrint[name_] := With[{n = ToString[Unevaluated[name]]},
  name[] := Print[n]
  ]
setToPrint[wget];
wget[]
@William Btw, you need to set the Attributes to HoldFirst if name already has a value..
 
1:41 AM
thank you!
 
2:00 AM
@William But be prepared that you have to hold evaluation in the function body to make it work if name already has a definition.
e.g. on the left side of := name will be evaluated.
 
@halirutanthank you I would like to do your script reverse start with "wget" as a string and go the othe rway
hmm you know what I probably can do it the other way
 
3:05 AM
@William You can do it like I posted, but just be aware that if you set wget=1, then it won't work.
 
 
12 hours later…
2:42 PM
@Kuba I think this is the answer to what I was asking about earlier.
 
 
6 hours later…
8:56 PM
anyone around?
 
@William kinda :P
 
@JacobAkkerboom I'm trying to select all printed out cells in mathematica but I'm fairly stuck
 
Ahh
I like that
 
Mathematica 9 and newer can select multilpe cells at once
 
Yeah..
SelectionMove[First@Cells[CellStyle -> "Output"], All, Cell] works, but not without First, so it only selects one cell
 
9:02 PM
what mathematica version are you using
 
11.0.0
 
hmm I'm using 10 currently
 
Ah it says in the docs: "SelectionMove can only select multiple cells as part of a CellGroup unit specification:"
 
If you use shift it works so I would assume there would be a way to do this manually
Would this be an acceptable question in your opinion
 
And below that: "To select a series of individual cells, use a front end token such as "SelectNextLine":". So I suppose there may not be further alternatives
So SelectNextLine is probably what shift+downarrow does
Item[KeyEvent["Down", Modifiers -> {Shift}], "SelectNextLine"] is in KeyEventTranslations.tr
Ah yeah sure, I think the question is acceptable.
@William but maybe I should have asked: Why are you trying to select all output cells? What do you want to do that you cannot do programatically by manipulating CellObjects?
@William I have to go now, sorry. Good luck with this!
 
9:11 PM
@JacobAkkerboom I would like to copy all printed out cells to another notebook
ok bye
 

« first day (1740 days earlier)      last day (2734 days later) »