Copying objects from a saved ⎕SE

The Dyalog "Knowledgebase". This forum is read-only
Forum rules
The FAQ is a read-only forum which is in general updated only by employees of Dyalog Ltd. It replaces the FAQ page which existed under http://www.dyalog.com. Rather than rejecting other posts to this forum, such posts will be put in a moderation queue, and moved to a more appropriate forum.
Post Reply
User avatar
AndyS|Dyalog
Posts: 263
Joined: Tue May 12, 2009 6:06 pm

Copying objects from a saved ⎕SE

Post by AndyS|Dyalog »

Currently it is not possible to )COPY or ⎕CY from either a session file or an extended workspace file.

One workaround, suggested by Geoff Streeter, is as follows:

In the source APL:

      se←⎕se
)save + tmpse

In the target APL:

      )copy ./tmpse se.object

Where se.object is each of the objects which you wish to copy in turn. It would probably be a good idea to generate that list in the original session and save as a variable which could be copied into the target session and used as a base for an automated set of ⎕CYs.

The "+" in )save + causes the interpreter to save a copy of the ⎕SE namespace along with the workspace in an extended workspace file.
Post Reply