How to save all open document in png 24 by javacsript
how to save all open document in png 24 by javacsript
yeah, i can definitely see how it would be useful for some
people! and
hey, for all i know, i'm the one who's not an average user. i
was
pretty much just saying that i can see how that's something
Firefox
would think to do, but not necessarily a program like
Dreamweaver. but i
agree that it would be a useful feature in lots of programs.
and i think
that what Murray suggested is probably pretty close to what
you're
looking for, if not exactly.
d_macman wrote:
> To respond to both...
>
> courtney (n h c)... I must not be the average user then.
We have many sites,
> and I do a LOT of development, and many times, I may
have several pages with
> several includes on a page. IE, for a form page, I may
have 10-12 pages total
> (including headers, footers, java, PHP process pages,
etc) and to work out the
> processes and for development, I may create several
versions depending on the
> problems I run into.So to not go nuts, I would LOVE to
save the batch of pages
> out, and then be able to re-open them all at once.
Making it easy to jump in an
> out of a test section (I have them saved in a site, and
dont want to make
> second sites just for this purpose).
>
> Not to mention, leaving work and coming back in and
finding out the power went
> out over the weekend and my machine shutdown (and yes, I
have a UPS, but it
> wont run the system for that long).
>
> So, you see why I would like to save them as batch, like
Firefox, way easier.
>
> Murray *ACE* ...
>
> I will try that, I did not even know that was there. Way
cool ! I hope it
> works, especially for power outages, like I mentioned
above!
>
> Thanks all,
>
> Don
>
>
Similar Messages
-
Applescript to save all open documents?
Hello,
When I close Numbers, I usually have about 15 documents with changes and I have to go through "Do you want to save changes" for all of them.
I've googled and tried, without success, to get a script that saves all open documents, except for untitled ones.
Is there anyone who know such a script?
FredHere is a revised version.
The problem was due to the fact that the script save and close the documents.
When I tested it, it was only saving them.
--[SCRIPT save&backup4iWork]
Enregistrer le script en tant que Script : save&zip4iWork.scpt
déplacer le fichier ainsi créé dans le dossier
<VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:
Aller au menu Scripts puis choisir “save&zip4iWork”
Tous les documents iWork ouverts, ayant déjà été enregistrés puis modifiés seront enregistrés et fermés.
Si la propriété avecSauvegarde a la valeur true, une copie horodatée de chaque fichier est créée.
Si le document principal est de type paquet, la copie est compressée (zip).
--=====
L’aide du Finder explique:
L’Utilitaire AppleScript permet d’activer le Menu des scripts :
Ouvrez l’Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
Cochez la case “Afficher le menu des scripts dans la barre de menus”.
Sous 10.6.x,
aller dans le panneau “Général” du dialogue Préférences de l’Éditeur Applescript
puis cocher la case “Afficher le menu des scripts dans la barre des menus”.
--=====
Save the script as a Script: save&zip4iWork.scpt
Move the newly created file into the folder:
<startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
Go to the Scripts Menu then choose “save&zip4iWork”
Every open iWork document already saved then edited will be saved and closed.
--=====
The Finder’s Help explains:
To make the Script menu appear:
Open the AppleScript utility located in Applications/AppleScript.
Select the “Show Script Menu in menu bar” checkbox.
Under 10.6.x,
go to the General panel of AppleScript Editor’s Preferences dialog box
and check the “Show Script menu in menu bar” option.
if the property avecSauvegarde is set to true, a dateTime stamped copy of each document is also created.
It's zipped if the main document is a package.
Yvan KOENIG
based on my AutoSave script.
2011/06/09
--=====
property avecSauvegarde : false
true = keep a dateTime stamped copy
false = don't keep a dateTime stamped copy
property saveKeynote : false
property saveNumbers : true
property savePages : false
--=====
on run
if savePages then my auto4PKN("Pages")
if saveKeynote then my auto4PKN("Keynote")
if saveNumbers then my auto4PKN("Numbers")
end run
--=====
on auto4PKN(theApp)
local titres, theDocs, aDoc, aPath
tell application "System Events" to set titres to title of processes
if theApp is in titres then
tell application theApp
As we close the documents, we must store the list of docs in a variable
or scan the list from the end which would require an index !
set theDocs to every document
repeat with aDoc in theDocs
if modified of aDoc then
set aPath to path of aDoc
try
set aPath to aPath as text
on error
Here if the document was never saved before
set aPath to ""
end try
if aPath is not "" then
Save and close documents which were already saved once
close aDoc with saving
if avecSauvegarde then my zipIt(aPath)
end if -- aPath
end if -- modified
end repeat
end tell -- theApp
end if -- theApp is…
end auto4PKN
--=====
on zipIt(fichier) (* fichier is an HFS path*)
local Nom, ext, dossier, isPackage, nomAvecDateHeure, source, dest
set fichier to "" & fichier
tell application "System Events" to tell disk item fichier
set Nom to name
set ext to name extension
set dossier to path of container
set isPackage to package folder
end tell
set source to quoted form of POSIX path of fichier
set nomAvecDateHeure to (text 1 thru -(2 + (count of ext)) of Nom) & (do shell script "date +_%Y%m%d-%H%M%S.") & ext
if isPackage then
set dest to quoted form of POSIX path of (dossier & nomAvecDateHeure & ".zip")
do shell script "ditto -ck " & source & " " & dest
else
set dest to quoted form of POSIX path of (dossier & nomAvecDateHeure)
do shell script "cp " & source & " " & dest
end if
end zipIt
--=====
--[SCRIPT]
--{code}
I included your specific requirements.
Yvan KOENIG (VALLAURIS, France) jeudi 9 juin 2011 18:03:20
iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7
Please : Search for questions similar to your own before submitting them to the community
To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer ! -
How to get all open document?
I want to replace some elements through all open documents in
dreamweaver.
eg. replace <b> to <strong> and </b> to
</strong>
I know i can do this by using "replacing all", but i want to
replace a lot of things together. it's boring to replace them one
by one :P
Anyone know how to make it?
Thank you for your help! ^^"xsiren" <[email protected]> wrote in
message
news:f1v1o5$333$[email protected]..
> the "dreamweaver.getDocumentList()" is only for get all
the list of open
> documens, istn't it?
> i tried to alert the value of it, and it show something
like
> "file://D:\develop\1.html" "file://D:\develop\2.html"
And then you are supposed to get the DOM out of the url,
passing it as an
argument to dreamweaver.getDocumentDOM()
Massimo Foti, web-programmer for hire
Tools for ColdFusion and Dreamweaver developers:
http://www.massimocorner.com -
How to access all open documents' ReadImageDocumentDesc?
Hi everyone,
I want to get access to the ReadImageDocumentDesc for all currently opened documents from an Export plugin, so I can give users the choice which of the documents to export. Is this possible?
I expected to have access to all documents via the "next" field of "ReadImageDocumentDesc *documentInfo" in form of a linked list, but that field appears ti be always NULL. Or isn't it for certain types of plugins?
If it isn't possible, are there other tricks I could use to accomplish my goal? Is a stack renderer plugin an option perhaps?
Any kind of help is highly appreciated.
BerndI have the same question. When I write a filter plugin in, I try to access two open pictures to deal with both of them. But I can't find how to utilize the ReadImageDocumentDesc * next to finish it. Is it possible?
-
How to save all open files IE like a shortcut or alias to them.
Hi everyone,
I know there must be a way to do this in Dreamweaver, but I
can't find it.
When I am working on a series of pages (for example, 3 or 4
pages with a bunch of include pages) and I want to save a shortcut
or alias that would re-open them all for me (like the "Bookmark All
Tabs" option in Firefox that will save all the open tabs so you can
open them all at once later).
This will save a TON of time, instead of me writing down
every single page name, and then, opening them all by hand later.
I know you can use the Site Navigation, to see the files, but
that runs sooooo slooooowwwww.
I appreciate the help in advance,
Regards,
Donyeah, i can definitely see how it would be useful for some
people! and
hey, for all i know, i'm the one who's not an average user. i
was
pretty much just saying that i can see how that's something
Firefox
would think to do, but not necessarily a program like
Dreamweaver. but i
agree that it would be a useful feature in lots of programs.
and i think
that what Murray suggested is probably pretty close to what
you're
looking for, if not exactly.
d_macman wrote:
> To respond to both...
>
> courtney (n h c)... I must not be the average user then.
We have many sites,
> and I do a LOT of development, and many times, I may
have several pages with
> several includes on a page. IE, for a form page, I may
have 10-12 pages total
> (including headers, footers, java, PHP process pages,
etc) and to work out the
> processes and for development, I may create several
versions depending on the
> problems I run into.So to not go nuts, I would LOVE to
save the batch of pages
> out, and then be able to re-open them all at once.
Making it easy to jump in an
> out of a test section (I have them saved in a site, and
dont want to make
> second sites just for this purpose).
>
> Not to mention, leaving work and coming back in and
finding out the power went
> out over the weekend and my machine shutdown (and yes, I
have a UPS, but it
> wont run the system for that long).
>
> So, you see why I would like to save them as batch, like
Firefox, way easier.
>
> Murray *ACE* ...
>
> I will try that, I did not even know that was there. Way
cool ! I hope it
> works, especially for power outages, like I mentioned
above!
>
> Thanks all,
>
> Don
>
> -
In the older version of Firefox at the point I was closing my browsing session , I had aPopup Window say "You are about to close eg. 10 Windows , do you wish to save and re-open next session ? "I was able to have that option saving my last browsing session - to open next occasion ... in Firefox 4 - How can I have that same option ??
Firefox 4 saves the previous session automatically, so there is no longer need for the dialog asking if you want to save the current session.<br />
You can use "Firefox > History > Restore Previous Session" to get the previous session at any time.<br />
There is also a "Restore Previous Session" button on the default <b>about:home</b> Home page.<br />
Another possibility is to use:
* [http://kb.mozillazine.org/Menu_differences Firefox (Tools) > Options] > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time" -
How to read all open documents containing a specific service team (partner)
Hi,
for my custom report i´m looking for a function module to read all service requests which are not closed and created for a specific service team. the service team is a partner function in the service request.
Could one of you experts please recommend a function module or example report?
Thank you.
Kind regards
ManfredHi Manfred,
You can use FM CRM_SERVICE_PORTAL_SEARCH to search for Service Requests based upon various input parameters including Partner Number and Partner Function.
Hope this helps.
Thanks
Vishal -
Looking for PS Script to Save and Close All Open Documents
I used ACR and CS5 to process my Nikon D3 NEF files. I would like a script that would save all open documents (witin PS) with the highest possible quality (12). I've found several scripts that will close all open documents with save but cannot figure out how to implement a save script.
For example, I may have 20 converted .jpeg files open. I would like to run a script to save & close all open documents.
Is it possible? Can someone post an example working script?Take a look at the image processor, under the scripts menu.
MTSTUNER -
I didn't find this when I did a forum search, but I find it hard to believe that there isn't a feature request for this already. Photoshop needs a "Save All" feature. I've seen suggestion to just make this an action, but the problem with that is that you must continually hit the action in order to perform it. Maybe I'm just missing something but I find it odd that a photo editing program, in which it is quite possible that you could have dozens of images open at the same time has no "Save All" or "Autosave" features...still.
If you want to give it a try paste the following text into a new file in ExtendScript Toolkit (part of Photoshop’s installation, Applications/Utilities/Adobe Utilities - CS5/ExtendScript Toolkit CS5) and save it as a jsx-file into Photoshop’s Presets/Scripts-folder.
After restarting Photoshop the Script should be available under File > Scripts and can be assigned a Keyboard Shortcut directly, recorded into an Action, (in CS4 and CS5) be used in a Configurator-Panel or started from ExtendScript Toolkit directly.
// save all open documents;
// 2011, use it at your own risk;
#target photoshop;
if (app.documents.length > 0) {
var theFirst = app.activeDocument;
var theDocs = app.documents;
// psd options for unsaved files;
psdOpts = new PhotoshopSaveOptions();
psdOpts.embedColorProfile = true;
psdOpts.alphaChannels = false;
psdOpts.layers = true;
psdOpts.spotColors = true;
// go through all files;
for (var m = 0; m < theDocs.length; m++) {
var theDoc = theDocs[m];
app.activeDocument = theDoc;
// getting the name and location;
var docName = theDoc.name;
// thanks to xbytor for the regexp;
if (docName.indexOf(".") != -1) {var basename = docName.match(/(.*)\.[^\.]+$/)[1]}
else {var basename = docName};
// getting the location, if unsaved save to desktop;
try {
var docPath = theDoc.path;
// save the file if unsaved;
if (theDoc.saved == false) {theDoc.save()}
// if file has not been saved yet save to desktop;
catch (e) {
var docPath = "~/Desktop";
theDoc.saveAs((new File(docPath+'/'+basename+".psd")), psdOpts, false, Extension.LOWERCASE);
app.activeDocument = theFirst; -
Older versions of Firefox allowed the user to save all open tabs to a folder in Bookmarks with one touch (not laboriously bookmarking each tab), so if Firefox did not remember your tabs when re-opening your browser after closing down for the night, you could at least re-open each tab if you'd been clever enough to save them to a Bookmarks folder. I still have my Bookmarked folders full of tabs from previous months, so I know I'm not imagining this useful Bookmark function.
I cannot find this function, Save All Tabs (I think that's what it was called,) under Bookmarks anymore.THANK YOU! So easy, now I feel stupid. ;)
Sorry, Firefox 4.0 is driving me nuts in many ways, this is just one of them. -
How do i print all open documents
is there any way to print all open documents?
Oh, and if you want to use one of your print presets, do it like this:
app.documents.everyItem().print(false,
app.printerPresets.itemByName("myFabPreset"));
Ariel -
Is there a way or a script to save all open files in Adobe Illustrator?
ThanksThanks. How would one edit this, especially so that it doesn't close the files?
Do I just delete the 4th line from the bottom?
var WR="WR-SaveAndCloseAll v0.2\n\n";
if (language == "de") {
var MSG_nodocs = WR+"Kein Dokument ge\xF6ffnet.";
var MSG_ask = WR+"Sollen alle Dokumente gespeichert und geschlossen werden?";
} else {
var MSG_nodocs = WR+"You have no open document."
var MSG_ask = WR+"Are you sure to save and close all open documents?";
var itemstoprocess=0;
var error=0;
var Docs=documents.length;
if (Docs<1) {
error++;
alert(MSG_nodocs);
} else {
if(confirm(MSG_ask)) {
for(var i=0;i<Docs;i++) {
activeDocument.close(SaveOptions.SAVECHANGES); -
Save all Open Files in CS4?
Hi all,
Looking for a script that will save all open files as a a JPG to a specific directory. I tried using this in CS4 but it doesnt work. It just opens the save dialog and thats it. Want something a bit more automated:
var tempFolder = new Folder ("C:/Your_Temporary_Folder")
tempFolder.create();
var DL = documents.length;
for(a=1;a<=DL;a++){
activeDocument = documents[a-1];
var AD=activeDocument;
var imgName= AD.name;
imgName = imgName.substr(0, imgName.length -4);
AD.flatten();
saveFile = new File("C:/Your_Temporary_Folder/"+imgName+".jpg");
saveOptions = new JPEGSaveOptions();
saveOptions.embedColorProfile = true;
saveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
saveOptions.matte = MatteType.NONE;
saveOptions.quality = 12;
AD.saveAs(saveFile, saveOptions, true,Extension.LOWERCASE);
Thanks.Hi guys,
That fixed it. The other problem was that the name length was too short:
imgName = imgName.substr(0, imgName.length -0);
So I corrected that as well. Thanks for your help.
Is it possible to add a "close without prompting to save" in the script? So it basically saves the file then closes the window in PS without prompting me to save it again? -
How to clear the open documents in case if document currency and local curr
Hi,
Can anyboday advise how to clear the open document of a particular vendor for a particular company code. Here the issue is that balace is netted to Zero in the document currency but not in the local currency. The document was posted in Currency CAD and the local currency is GBP.
When i check the FBL1N, there is it showing net balance is ZERO, but document is still in open
status. I tried using Transaction code F-44, but it is not allowing me.
Can anyboday advise how to perform this. Points will be awarded.
Regards,
Sree.Hi,
In the Company code global parameters(OBY6),select the check box "NO FOREX RATE DIFF.WHEN CLEARING IN LC"
and try clearing again.(You can have a F1 help on the check box to see what exactly it is).
Hope this will resolve
Assign points if useful
Thanks
Aravind
Edited by: Aravind Aitipamula on May 22, 2008 1:36 AM -
How to clear vendor open documents
How to clear vendor open documents, I had previously tried to clear the documents in PRD with transaction F-44 and I get the following message.
X. Ex.rate diff.accts are incomplete for account 00015080 currency CADYou can clear using the t code F-44 which is manual or by using F.13 which is automatic.
The error you are getting is with refernce to a transaction between your Local currency and Currency "CAD"
Maintain a transalation ratio and the exchange rate. Here the system also looks for a exchange loss or gain on such conversion also. Map those accounts and you will be clearing the transaction.
If you are using automacti clearing you need to decide on the link(Common feild) between the DR open item and CR open item and these open items after having this as a refernce can be cleared automatcially in F.13.
Hope you understood.
Reward points if useful.
sarma
Maybe you are looking for
-
My service has been turned off even though I returned phone?
I am so unhappy with Verizon! I have been a Verizon customer (loyal) for over 13 years now. I always loved them, bragged about them, encouraged friends, family and clients to sign up with them as well. Until last year. I sucked it up every time I upg
-
I'm just trying to do something with each file in a particular folder. Is there already a Fuego object for doing this? If not, what are my other options?
-
MOVED: How do I achieve three displays?
This topic has been moved to Off-Topic Technical. https://forum-en.msi.com/index.php?topic=152771.0
-
I orginally bought Dreamweaver CS5.5, and I later upgraded to CS6.
I orginally bought Dreamweaver CS5.5, and I later upgraded to CS6 by downloading and entering the product code. Recently I had to reinstall Windows so I no longer have CS6. Is there some way of getting it back? I have the product key. Second, this
-
Retreive Current active/selected Role & active/selected Workset - WebDynpro
Hello All, I'm working on 2004s and trying to make a webdynpro application, which would retrieve following data of existing Portal users: 1> Current Role (User selected Role) 2> Current Worket that is attached/assigned to the current role (referring