Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #6842 > unrolled thread
| Started by | Barrie Stokes <Barrie.Stokes@newcastle.edu.au> |
|---|---|
| First post | 2011-11-30 08:28 +0000 |
| Last post | 2011-12-01 11:01 +0000 |
| Articles | 4 — 3 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Problem with Patterns and Integrate Barrie Stokes <Barrie.Stokes@newcastle.edu.au> - 2011-11-30 08:28 +0000
Re: Problem with Patterns and Integrate A Retey <awnl@gmx-topmail.de> - 2011-11-30 12:06 +0000
Re: Problem with Patterns and Integrate Barrie Stokes <Barrie.Stokes@newcastle.edu.au> - 2011-12-01 10:58 +0000
Re: Problem with Patterns and Integrate "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> - 2011-12-01 11:01 +0000
| From | Barrie Stokes <Barrie.Stokes@newcastle.edu.au> |
|---|---|
| Date | 2011-11-30 08:28 +0000 |
| Subject | Re: Problem with Patterns and Integrate |
| Message-ID | <jb4pfb$gtj$1@smc.vnet.net> |
Dear MathGroup I have recently discovered the power of the command SystemOpen[]. (Using SystemOpen[] you can make very handy buttons that open, say, PDF file *with Acrobat* with, e.g., Button["fileName", SystemOpen["pathToFileName.pdf"], Background -> RGBColor[ 0.5, 0.5, 0.7]], or Word docs in Word with Button["fileName", SystemOpen["pathToFileName.doc"], Background -> RGBColor[ 0.5, 0.5, 0.7]].) It is the general version of NotebookOpen[], which opens .nb and .cdf files (in Mathematica). I have just now tested a hypothesis, and found that SystemOpen[] opens .nb and .cdf files too, so it would seem that SystemOpen[] is all one needs. (?) My questions: I intend to set up Parallels Desktop or VMware Fusion running on a MacBook Pro (lots of RAM and disk), giving me access to Mathematica running under Lion, and at the same time a never-to-be-ported-to-Mac-Windows-only program (uses filename.odc files) installed under Windows 7. (i) Can SystemOpen[] reach across the divide - given sufficient path details - and launch (with the Windows-only program) a filename.odc file in the Windows 7 "partition"? (ii) Can Import[] then reach across the divide - given sufficient path details - and read in a file newly created in the Windows 7 "partition" by said Windows-only program? Thanks Barrie
[toc] | [next] | [standalone]
| From | A Retey <awnl@gmx-topmail.de> |
|---|---|
| Date | 2011-11-30 12:06 +0000 |
| Message-ID | <jb567c$jdk$1@smc.vnet.net> |
| In reply to | #6842 |
Hi, > I have recently discovered the power of the command SystemOpen[]. > > (Using SystemOpen[] you can make very handy buttons that open, say, > PDF file *with Acrobat* with, e.g., > > Button["fileName", SystemOpen["pathToFileName.pdf"], Background -> > RGBColor[ 0.5, 0.5, 0.7]], > > or Word docs in Word with Button["fileName", > SystemOpen["pathToFileName.doc"], Background -> RGBColor[ 0.5, > 0.5, 0.7]].) > > It is the general version of NotebookOpen[], which opens .nb and .cdf > files (in Mathematica). ... not exactly, I think... > I have just now tested a hypothesis, and found that SystemOpen[] > opens .nb and .cdf files too, so it would seem that SystemOpen[] is > all one needs. (?) NotebookOpen does open .nb and .cdf files within the running Mathematica (or player) instance. That is very different from what SystemOpen does: SystemOpen uses the operating system to open files -- with whatever the system settings will do with them. Usually .nb files are opened by mathematica and for most modern OS things are set up such that it will reuse a running instance of that program, so it will be opened also in the running Mathematica instance. But if you would e.g. have your setting such that a .nb file would be opened with a text editor, SystemOpen would open it with that, while NotebookOpen would open it with the running Mathematica, no matter what the OS settings are. The same is of course true if you have multiple versions of Mathematica or Players installed: SystemOpen will use the operating systems settings, which could be another version of Mathematica or Player than the one calling SystemOpen, NotebookOpen will always open within the calling Mathematica/Player instance. > My questions: > > I intend to set up Parallels Desktop or VMware Fusion running on a > MacBook Pro (lots of RAM and disk), giving me access to Mathematica > running under Lion, and at the same time a > never-to-be-ported-to-Mac-Windows-only program (uses filename.odc > files) installed under Windows 7. > > (i) Can SystemOpen[] reach across the divide - given sufficient path > details - and launch (with the Windows-only program) a filename.odc > file in the Windows 7 "partition"? I don't know the combination of MacOS and Parallels/VMWare well enough, but whether that is possible or not has nothing to do with Mathematica: If you can set things up that a double click on a .odc file will open it within the virtual machine, then I would expect SystemOpen to do exactly that, too. So you might want to ask how to set this up in other groups than this. If you have your settings up and running and SystemOpen will still not work it would become something that people here or at WRI could probably help you with... > (ii) Can Import[] then reach across the divide - given sufficient > path details - and read in a file newly created in the Windows 7 > "partition" by said Windows-only program? that depends again mainly on what Parallel Desktop and VMWare offer as integration of the virtual machine and the hosting OS. Usually there are means to share file systems among the hosting OS and the virtual machine, if you write to one of those shared file systems, you can of course read from there from both sides. See the documentation of the virtualization software you use to learn how that works. hth, albert
[toc] | [prev] | [next] | [standalone]
| From | Barrie Stokes <Barrie.Stokes@newcastle.edu.au> |
|---|---|
| Date | 2011-12-01 10:58 +0000 |
| Message-ID | <jb7mjq$fod$1@smc.vnet.net> |
| In reply to | #6842 |
Hi Albert (Apologies for posting this question under a wrong subject - I've re-posted with a more indicative subject.) Re: "That is very different from what SystemOpen does: SystemOpen uses the operating system to open files -- with whatever the system settings will do with them.", I should have said more, but that is exactly what I suspected; how else could SystemOpen open and run any file for which there is a nominated application, with said application. Re: "I don't know the combination of MacOS and Parallels/VMWare well enough, but whether that is possible or not has nothing to do with Mathematica", Again, perhaps I should have been clearer. I asked this question on this Group because this is the Group that would have experience with SystemOpen. Whether or not it works is an empirical question. I just wanted to know whether SystemOpen will do what I asked about, before I buy and set up a new MacBook Pro as descreibed in my question. Maybe I should now wait to see if any Mathematica user has had some experience with this issue. To put it another way, I'm looking for an evidence-based answer, and hoping too that someone from Wolfram has some guidance - or experience - to offer. Re: "hth", yes it does, insofar as it confirms my own speculations/hopes to a great extent. As you say, "Usually there are means to share file systems among the hosting OS and the virtual machine". I just want some confirmation that what I want to do is not an exception that proves a rule. Thanks Barrie >>> On 30/11/2011 at 11:04 pm, in message <201111301204.HAA19836@smc.vnet.net>, A Retey <awnl@gmx-topmail.de> wrote: > Hi, > >> I have recently discovered the power of the command SystemOpen[]. >> >> (Using SystemOpen[] you can make very handy buttons that open, say, >> PDF file *with Acrobat* with, e.g., >> >> Button["fileName", SystemOpen["pathToFileName.pdf"], Background -> >> RGBColor[ 0.5, 0.5, 0.7]], >> >> or Word docs in Word with Button["fileName", >> SystemOpen["pathToFileName.doc"], Background -> RGBColor[ 0.5, >> 0.5, 0.7]].) >> >> It is the general version of NotebookOpen[], which opens .nb and .cdf >> files (in Mathematica). > > ... not exactly, I think... > >> I have just now tested a hypothesis, and found that SystemOpen[] >> opens .nb and .cdf files too, so it would seem that SystemOpen[] is >> all one needs. (?) > > NotebookOpen does open .nb and .cdf files within the running Mathematica > (or player) instance. That is very different from what SystemOpen does: > SystemOpen uses the operating system to open files -- with whatever the > system settings will do with them. Usually .nb files are opened by > mathematica and for most modern OS things are set up such that it will > reuse a running instance of that program, so it will be opened also in > the running Mathematica instance. But if you would e.g. have your > setting such that a .nb file would be opened with a text editor, > SystemOpen would open it with that, while NotebookOpen would open it > with the running Mathematica, no matter what the OS settings are. The > same is of course true if you have multiple versions of Mathematica or > Players installed: SystemOpen will use the operating systems settings, > which could be another version of Mathematica or Player than the one > calling SystemOpen, NotebookOpen will always open within the calling > Mathematica/Player instance. > >> My questions: >> >> I intend to set up Parallels Desktop or VMware Fusion running on a >> MacBook Pro (lots of RAM and disk), giving me access to Mathematica >> running under Lion, and at the same time a >> never-to-be-ported-to-Mac-Windows-only program (uses filename.odc >> files) installed under Windows 7. >> >> (i) Can SystemOpen[] reach across the divide - given sufficient path >> details - and launch (with the Windows-only program) a filename.odc >> file in the Windows 7 "partition"? > > I don't know the combination of MacOS and Parallels/VMWare well enough, > but whether that is possible or not has nothing to do with Mathematica: > If you can set things up that a double click on a .odc file will open it > within the virtual machine, then I would expect SystemOpen to do exactly > that, too. So you might want to ask how to set this up in other groups > than this. If you have your settings up and running and SystemOpen will > still not work it would become something that people here or at WRI > could probably help you with... > >> (ii) Can Import[] then reach across the divide - given sufficient >> path details - and read in a file newly created in the Windows 7 >> "partition" by said Windows-only program? > > that depends again mainly on what Parallel Desktop and VMWare offer as > integration of the virtual machine and the hosting OS. Usually there are > means to share file systems among the hosting OS and the virtual > machine, if you write to one of those shared file systems, you can of > course read from there from both sides. See the documentation of the > virtualization software you use to learn how that works. > > hth, > > albert
[toc] | [prev] | [next] | [standalone]
| From | "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> |
|---|---|
| Date | 2011-12-01 11:01 +0000 |
| Message-ID | <jb7mq1$gc3$1@smc.vnet.net> |
| In reply to | #6842 |
On Wed, 30 Nov 2011 08:28:27 -0000, Barrie Stokes <Barrie.Stokes@newcastle.edu.au> wrote: > (i) Can SystemOpen[] reach across the divide - given sufficient path > details - and launch (with the Windows-only program) a filename.odc file > in the Windows 7 "partition"? > > (ii) Can Import[] then reach across the divide - given sufficient path > details - and read in a file newly created in the Windows 7 "partition" > by said Windows-only program? > The answers to both of these would presumably be "yes". The problem, though, is how to give "sufficient path details". Which path would you usually use, from Mac OS, to cause a Windows program hosted in a VM to open a file? Unless you've written your own custom filesystem drivers for both systems to provide some sort of distributed interprocess communication mechanism (difficult perhaps, but certainly not impossible), I doubt any such path exists.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web