Save the Code?
is there an easy save the active document code?
Hi Chris,
I made a few changes that might help you.
No script does work on the document you are running and not new or not active.
I'm not sure sleep 60000 setting but as I understand it, you want that connected in the values of t and t2 and not sleep.
Note the changes that I made on the activeDocument and try to understand them.
Sorry I can't explain properly, now I am very busy.
Unraced below once again, so do not be surprised if...
HTH
Trevor
main(app.properties.activeDocument); // CHANGED var filter = function() { var w = "InDesign files:*.indd;", m = function(f) { return /\.indd$/.test(f.name); }; return $.os[0] == "W" ? w : m; }; function main(doc) { var t = (new Date()).getTime(); var onIdleEventHandler = function(idleEvent) { if (!doc) return; if (doc !== app.properties.activeDocument) return; // ADDED if (!doc.properties.fullName) { var f = File.saveDialog("You need to save your document now !", filter); if (f) { doc.save(f); } return; } var t2 = (new Date()).getTime(); if (t2 - t > 60000) { // CHANGED t = t2; doc.save(); } }; var myIdleTask = app.idleTasks.item("autoSave"); if (!myIdleTask.isValid) { myIdleTask = app.idleTasks.add({ name: "autoSave", sleep: 1000 // CHANGED }); myIdleTask.addEventListener(IdleEvent.ON_IDLE, onIdleEventHandler, false); } }
Tags: InDesign
Similar Questions
-
Problem when u - save the *.cod file using javaloader.exe
I have a project for coding in c#.
When I runing comand u save
using javaloader.exe and then only to save file to the same folder as javaloader.exe .cod. So, how can I save
to a different directory (folder).?
Please tell my way. ! Thank you very much. !Yes, thank you replied.
Now I got it in c#, I used the "FileInfo" and "MoveTo" properties
Affter all recorded the *.cod file in the same directory with javaloader, I call "MoveTo" to move all in my repertoire *.cod file (file made by myself).
That's all
Code:
for (int j = 0; j)< dem;="">
{
String filename = list_modules. CheckedItems [j]. ToString();
FileInfo info = new FileInfo (path1 + "\" + name + ".cod");
info. MoveTo (path2 + folder_name + "\" + info.) Name ());
} -
No Save/Close button to save the Javascript in the built-in Editor
I downloaded the trial version and play with the features. I am changing a form. I added a button. In the Actions tab, I selected "Execute Javascript." There is a button 'Add' that calls the built-in Javascript Editor. It has a multi-line text box to enter the script. However, there is no button to save the code. All I have is the Red 'X' button to close the window without saving changes.
It is the trial version on Windows 8.1 XI machine.
Any help will be appreciated. Thank you.
The Editor window seems too big? Is anything else in Acrobat size
incorrectly? This could be linked to the "resolution of the screen grid.
setting. Open Acrobat preferences, then go to the category "General".
and change the setting of "Scale for the resolution of the screen" to 100%. After
Restart Acrobat, the Editor window looks different?
-
The create a System Image will save the FPGA code and the RT code?
I have some cRIO systems which were broadcast in our manufacturing plant for some time. A slight problem has been discovered in the programming and created a workaround solution, but a fix should be implemented. Currently, I have no way to test my new code without loading on the cRIO and it works on the tool while the product is running. If there is a problem and I need to do some debugging, the tool cannot be down for an extended period. I would write a vi that will save an image of the cRIO so I can reload the software that is currently running and prevent a situation of prolonged downtime.
My question is, when I did in the past with a product that has different tests, calibration and the final client software RT, it seems that the code FPGA not be saved (not a big deal at the time since the new FPGA code was compatible with different deployments RT). The new FPGA code won't be compatible with the old RT software, so now I'm worried. I would like to just check on it until I have all the boss breathing down my neck. If the service will not save the bitfile FPGA, is there anything else I can do for the tool to return to the previous running state while I solved problems that may exist with the new code review? The original code was lost by my predecessor. Otherwise, I would use just that.
Hi Jeremy,.
You are right, because the create a System Image does not record the bitfile with the image of the RT. Using the configuration system API, you will need to deploy the RT image and then the bitfile FPGA compiled later. To ensure that you can return to the previous version of the software running on your RIOs, you could simply save the current image and bitfile before deploying the new image and bitfile.
However, the best way to proceed is to use replication Deployment Utility (RAD of OR). I have provided the link to the tutorial on the wheel, where you can download the utility. This exe will make images of the any of your RT targets and will also include the bitfiles with them. You can also deploy these images to several targets at once. In particular, you can read about the Bitfile (s) configure for FPGA Deployment Flash; the bitfile will be deployed at the start when stored in flash memory.
Replication and deployment (RAD) utility-
-
Hi all
I'm using labview 13.0 and I am trying to save my project in a different location using the "Save as-> double .lvproj file and content" with all the dependencies. I select a location on my computer and it starts to run. Once he traveled a few files, I get the following error:
LabVIEW: File generic i/o Error
Unable to save the class "setMaximumHeaterPowerMessage.lvclass".
LabVIEW save 44 error code: cannot move temporary files to destination.
I press OK and it asks me to choose a "backup of"setMaximumHeaterPowerMessage.lvclass"emergency Destination, I do that and then get:
LabVIEW: File generic i/o Error
Unable to save the class "setMaximumHeaterPowerMessage.lvclass".
I press OK and stop the saving process.
Googling the problem only led to a few articles talking about virtualbox, which I am not using. I have enough space on my hard drive.
Anyone know what is causing this problem and how can I solve this problem?
Thanks in advance
Believe it or not, but it was because the path of some files names are too long
-
Unable to save the movie in Live Moviemaker - many error codes
I have tried repeatedly to record a movie in Live Moviemaker. Last night I tried to save the movie using "recommend the parameter" error 0 x 87160129 appeared. The location of the source has not been moved or renamed. When I checked through the 23 images were affected, with different error codes - 0xC946001E, 0 x 80070057, 80004003 0 x, 0 x 87160129. When I tried to save this morning using "burn dvd" setting, error 0 x 80070057 appeared, only 12 frames of the film have been affected and only image was the same as the previous night, but with a different error than before. When I previews savings B4 film everything seems ok, I tried to save at least 5 times, but noted only error codes / affected executives in the last 2 times. But it seems that concerned executives continue to change. Would appreciate any help. Thank you very much
I have tried repeatedly to record a movie in Live Moviemaker. Last night I tried to save the movie using "recommend the parameter" error 0 x 87160129 appeared. The location of the source has not been moved or renamed. When I checked through the 23 images were affected, with different error codes - 0xC946001E, 0 x 80070057, 80004003 0 x, 0 x 87160129. When I tried to save this morning using "burn dvd" setting, error 0 x 80070057 appeared, only 12 frames of the film have been affected and only image was the same as the previous night, but with a different error than before. When I previews savings B4 film everything seems ok, I tried to save at least 5 times, but noted only error codes / affected executives in the last 2 times. But it seems that concerned executives continue to change. Would appreciate any help. Thank you very much
=============================================
I'm guessing that you are running Movie Maker 2.1 on Windows XP?There is a good possibility that some of your source files (photos.
video clips, audio clips) are incompatible or corrupted.Even if the project plays well in Movie Maker... which is not guaranteed
It can encode the project in a video file.First... try the following...
When ready to save it as a movie... go to...
Tools / Options / Compatibility tab and uncheck the box 'all' filters.Following... record in DV - AVI format as follows:
XP Windows Movie Maker 2.1...
To save a DV - AVI movie file...
(and other options)
Type of... CTRL + P (or go to...) File / save movie file)
to open the wizard movie recording.
Choose... My computer.
Next /.
Enter a name and a location.
Next /.
Show more choices.
Other parameters.
Open the window of the droplet and choose... DV - AVI.
Next /.
Wait while the movie is saved.
Finishing...If the steps above fail, the next task would be to convert
video clips on the. Before you import into movie WMV format
Audio Maker and convert to the. WMA format before
import into Movie Maker.There are many converters available on the net... the
the following link is an example:(FWIW... it's always a good idea to create a system)
Restore point before installing software or updates)Format Factory (freeware)
http://www.videohelp.com/tools/Format_Factory
(the 'direct link' is faster)
(the file you want to download is: > FFSetup296.zip<>
(FWIW... installation..., you can uncheck
('all' boxes on the last screen)
(Windows XP / Vista / 7)First... after the download and installation of Format
Factory... you can open the program and
left click on the toolbar, the "Option" button and
"Select an output folder to" / apply / OK.
(this is where you find your files after they)
are converted)Drag and drop your music files on the main screen...
Select "while"WMA"/ OK...
Drag and drop your video files on the main screen...
Select "all to WMV" / OK...
Now try to recreate the project with the converted files.
If you decide to try these suggestions... Let us know the result.
-
Original title: Family Safety filter configuration problem.
Hello.
I got family safety works very well before a reinstall of Windows 7 Professional. After I install windows essentials, I connect to my microsoft account, now I'm trying to set up the filter, monitored accounts are already checked, the only option is to save.
When I click Save I get this
The system cannot find the specified file 80070002 error code.
I've tried everything. Uninstall, reinstall Windows Essentials 2012. First of all, I did a partial install with just the film and the family. Uninstalled. Re-installed full. Always the same question. I even tried to install Windows Essentials 2011. No change.
Help, please. I appreciate it.
Thank you
GISIGER
Hi Greg,.
Thanks for the reply.
Run the System File Checker tool.
Use the System File Checker tool to repair missing or corrupted system files
http://support.Microsoft.com/kb/929833
Also reset Windows update components and check if this solves the problem.
Refer to this link:
http://support.Microsoft.com/kb/971058
Important: Follow the steps in this section carefully. Serious problems can occur if you modify the registry incorrectly. Before you modify it, Save the registry restore problems.
Keep us informed on the status of the issue.
-
How can I get the code to save Pixillion Image converter? [was: glory614]
How can I get the code to save Pixillion Image converter
It's not Adobe software.
You will need to go to the manufacturer's Web site and get your code from them
-
Code to save the PDF file as an excel spreadsheet?
I have the following code - which allows me to save a file based on the value of a field:
myTrustedSaveAs = app.trustedFunction (function (doc, path)
{
app.beginPriv ();
doc.saveAs({)
cPath: path,.
bCopy: true,
bPromptToOverwrite: true
});
app.endPriv ();
});myTrustedOpenDoc = app.trustedFunction (function (path)
{
app.beginPriv ();
app.openDoc({)
cPath: path
});
app.endPriv ();
});I would like to be able to record both a PDF and one a worksheet based on the same path. What is the code to use to save the file as an excel spreadsheet?
I use Adobe X pro.
Reference on the Acrobat JS API for the saveAs method shows the various necessary parameters.
myTrustedSaveAs = app.trustedFunction (function (doc, path)
{
app.beginPriv ();
doc.saveAs({)
cPath: path,.cConvID: "com.adobe.acrobat.xlsx."
bCopy: true,
bPromptToOverwrite: true
});
app.endPriv ();
});myTrustedOpenDoc = app.trustedFunction (function (path)
{
app.beginPriv ();
app.openDoc({)
cPath: path
});
app.endPriv ();
});You can also use the ID of the conversion of the 'com.adobe.spreadsheet '.
-
ADF Code corner #50 - tree selection listener Table do not save the State of the
Hello world
With the help of JDev Studio Edition Version 11.1.1.3.0
I have a table of tree using the earphone generic selection based on the excellent article by Frank Nimphius during synchronization of forms for entries of tree node edit. http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/50-synchromize-form-TreeSelection-169192.PDF
My problem:
My selectedNodeRowKey and selectedNodeRowIterator variables are turning to null out the listener.
Process and code:
I select a node. It called the selection event of onTreeSelect, which in turn saves the node key and the iterator in the same support bean backingBeanScope value.
Then, I click on a button that calls an actionListener in the same bean support.DCIteratorBinding _treeIteratorBinding = null; _treeIteratorBinding = treeBinding.getDCIteratorBinding(); //Frank's code above ... this.selectedNodeRowKey = nodeBinding.getRowKey(); for (Object opaqueFacesKey: treeTable.getSelectedRowKeys()) { treeTable.setRowKey(opaqueFacesKey); this.selectedNodeRowIterator = ((JUCtrlHierNodeBinding) treeTable.getRowData()).getRowIterator(); } System.out.println(); System.out.println("Update Key: " + this.selectedNodeRowKey); System.out.println("Update Ite: " + this.selectedNodeRowIterator); //Frank's code resumes ... Row[] found = this.selectedNodeRowIterator.findByKey(this.selectedNodeRowKey, 1);
This gives me the resultpublic void onButtonRemove(ActionEvent actionEvent) { System.out.println("Remove button pressed."); BindingContainer bindings = getBindings(); System.out.println(this.selectedNodeRowKey); System.out.println(this.selectedNodeRowIterator); OperationBinding operationBinding = bindings.getOperationBinding("deleteChildren"); operationBinding.execute(); System.out.println("Remove complete"); }
What happened to my values and node iterator? I guess it has something to do with a scope or something similar to C++ through reference instead of the value. The strange thing is, the default MakeCurrent onSelection the auditor's work, but use this generic listener and values change.Update Key: oracle.jbo.Key[112 ] Update Ite: oracle.jbo.server.ViewRowSetImpl@aa641d bos.model.queries.TbomView Remove button pressed. null null Remove complete
Published by: LovettWB on December 21, 2010 14:51Hello
You can try setting the bean to the session scope? I guess it works, which brings me to my main point. If the managed bean is used in a stubborn workflow (which I assume you are referring to the use of fragments of page jsff), make sure that it is also defined in the workflow definition and not adfc-config. Personally, I like to feel it is best to set the bean managed in the metadata scopes, in which it is used. So could already solve the problem
Frank
-
How save/export the Code coloring?
I upgraded to CS5.5 and lost all the code coloring, I wonder why it is not save or export function to support it?
You have no idea how difficult it is to re-do it? What happens if something happens with the Dreamweaver and you it can not save... start all over again...
What version you put in? and what operating system?
The code coloring is controlled by a file called Colors.xml that you can copy and paste into the folder config CS5.5
The path to the xml file are listed here (depending on your operating system and you have upgraded to version)
http://psdtowp.NET/Dreamweaver/dark-coding-colorization-for-Dreamweaver/
-
Why dreamweaver starts to crash when typing code or save the same... ?
Hello
When I start Dreamweaver, and I start typing the code I need to do for my site professionpower. In a few minutes, Dreamweaver becomes slow and begins to crash. Even if I type 3 or 4 words and he can minimum 20 seconds so that these words appear in the code. If I choose the option to auto-fill, same thing happens again. When I select any element of list and drag it to the code, it takes almost the same amount of time to make the code display on the screen. And until it is hanging, I can't do anything to another type.
I think it's sufficient detail to explain what is happening. Thank you to give me a valid solution for that I can work on my site professionpower.com correctly.
Thanks in advance.
Your site is built on WordPress. You must use the WP Dashboard to edit your site.
If you just try to create content to paste into your WP site, switch to Design view.
Nancy O.
-
Try to save my copy of 13 elements, the program won't let me enter the code.
I bought a copy of the 13 items amazon.ca and when I try to activate the program, I get to where I need to enter the code but the page won't let me enter the code.
The code consists of letters and numbers but the page only allows me to enter numbers.
What should I do?
I dug on all surfaces I could find and nothing... Finally, I decided to cut strips at the bottom of the retail box... just sort of "what the devil... is stupid" movement and... There it was on the lower/wedge part the disks in place thing rectangle...
Those who thought of something like that?
-
Hi all
I'm completely ignorant when it comes to Apple Script and I'm trying to get this simple script to work. The purpose of the script is to save attachments in a folder named when I run on the Apple Mail messages via a rule.
This is the code:
Tell application "Mail".
theMessages set of selection
Repeat with thisMessage in theMessages
the value of the theAttachments attached to a letter of thisMessage
Repeat with thisAttachment in theAttachments
the value theAttachmentFileName ((chemin d'accès àle texte riche de la règle de type dossier de départ) & ' treatment of the Documents record: Hazel ") & name of the thisAttachment
Save thisAttachment in file theAttachmentFileName
end repeat
end repeat
tell the end
The folder does not exist, but I get a "error " Mail has been a mistake: AppleEvent Manager has failed. ' number - 10000 "when I run.
The code in the Script Editor editor also inserts "type of rule" in my code, so I guess that my syntax is faulty.
Any help would be greatly appreciated.
Kind regards
Beem
If ' folder of treatment of Hazel ' already exists in the Documents folder, the following script of GUI, which seems to work perfectly under OS X 10.11.3, should do what you ask for:
Try
game of theDestinationFolder to ((path to the documents folder) as text) & "Hazel treatment record" as alias
on error - file does not exist
return Beep 3
end try
say application "Mail".
activate
the value theMessages to the selection
Repeat with thisMessage in theMessages
thisMessage Open
say application 'System events' to say process "Mail".
click on menu item "Save attachments...". " of 1 of the 'file' menu bar item menu of the menu bar 1
Repeat until sheet 1 window 1 is
end Repeat
key sequence "o" using { control down,shift down}
key sequence "Nutty".
click on button 'Save' of the sheet 1 of window 1
Repeat while sheet 1 window 1 is
end Repeat
key sequence 'w', using {control down} - close this message
end say
end Repeat
end say
-
Presario cq57: System to disable the code
I have presario cq57 gives disable me the code 78432038
Trying to access bios to remove passwords
Try loader.
67590018
Use this code to go into the BIOS.
Disable all passwords that are enabled.
If demand for CURRENT password using this code.
Request NEW password just press ENTER.
If asked to hit just to CHECK password to enter.
Save and exit.
REO
I must inform you that these services are not endorsed by HP, and that HP is not responsible for any damages that may occur to your system using these services. Please be aware that you do so at your own risk.
Maybe you are looking for
-
Hey! I have fuzzy screen in firefox. I tried different browser they work normally. The fonts are goes into them that I can't read when I refresh the page its going and don't reproduce. I reinstal windows does not solve, I checked my graphics driver b
-
Satellite L855-123 freezes from time to time
Hello My laptop freezes from time to time, especially just after that is (re) starts. Most of the time the audio or the video freezes for a few seconds (any program I use), it affects everything else too (for example, when music freezes, google chrom
-
Error update Vista 906602.
-
Internet service with Windows Vista
I installed Windows 7RC. No problems. I always wanted to use Windows Vista for Outlook Express, but it can no longer connect to the internet with Vista. I reinstalled Vista with Dell drive.
-
Well, for starters, I use a HP Pavilion G6 and it runs Windows 7 Home Premium OS. Well, I personally did the implementation of the PC and fact my user account on the system (with full administrator privileges) while I'm my songs and other stuff on it