Message Boards Message Boards

Web deployment of document containing URLSave function

Posted 12 years ago
Is it possible to deploy a Mathematica notebook which contains a dynamic URLSave function? My code has the following structure:
web = URLSave["http://www.wolfram.com/mathematica/", Close[OpenTemporary[]]]
Dynamic[web, UpdateInterval -> 20, TrackedSymbols -> {}, SynchronousUpdating -> False]
The problem is when I start to deploy it, in the last step after I indicate in which folder to save the CDF file, then this error appears:

Select::normal: Nonatomic expression expected at position 1 in
  Select[C:\Users\Morry\Dropbox\MEPS\ALISalehi\HTML\146\Untitled.cdf,StringMatchQ[#1,*.png]&].
2 Replies
Do you use the function Select[] in your code?  If so, will you please provide that section of code also.

If you do not use the Select[] function in your code, then this would indicate an issue with the CDF deploy process.
I went through the process myself as best as I could given the information you have provided so far.  I did not see 
any issues, so, to directly answer your question, it seems to me that it is possible to deploy a Mathematica 
notebook which contains a dynamic URLSave function, since I was able to do so using Windows version 9.0.1.

I would need more information in order to determine what is causing the error message.
You probably want to use RunScheduledTask for this purpose:

task := URLSave["http://www.wolfram.com/mathematica/", Close[OpenTemporary[]]];
RunScheduledTask[task, 20]
POSTED BY: Arnoud Buzing
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract