[AS] saving,  different name, different location

Hi
I have a Indesign CS3 file saved as a template, what I am trying to do is save the template as a document in a different place with a different name.
I have the below which works fine, but I have to paste the file name into the text field (which is stored on the clipboard) thrown via the prompt "save document 1 to (choose file name)", and manually choose a destination to save to.
I have the name of the new file, I have a new location for the file, but I am uncertain as
to how to go about executing a script to do what I am seeking, any help appreciated please.
tell application "Adobe InDesign CS3"
activate
set myDoc to active document
set Doc_Width to page width of document preferences of myDoc
set Doc_Height to page height of document preferences of myDoc
set _W to round {(Doc_Width)} as number
set _X to result
set _Y to round {(Doc_Height)} as number
set _Z to result
if (_Z is "241" as number) and (_X is "311" as number) then
set _H to "H"
end if
end tell
set _folders to (folders of desktop whose name begins with "Q")
repeat with _folder in _folders
set _Name to name of _folder
count words of _Name
if the result is 2 then
set _NewName to (text 2 thru 7 of _Name) & (text 9 thru -1 of _Name)
else
set _NewName to (text 2 thru -1 of _Name)
end if
end repeat
set the clipboard to _NewName & "-" & _H as string
tell application "Adobe InDesign CS3"
save document 1 to (choose file name)
end tell
end tell
Kev

Open the dictionary for standard additions, and look up choose file name. You need something like:
save document 1 to (choose file name default name _NewName default location _folder)

Similar Messages

  • PLEASE HELP!! I've used iWeb to create multiple sites, all published to third party servers.  The very last site I made changes to is showing up in any domain file I open - despite their different names and locations on my iMac.  I just switched to Lion.

    Please HELP!!  I just switched to Lion.  I have created multiple websites using iWeb  3.0.4 and despite my having saved their 'domain' files in various locations and using different filenames, upon opening the domain files I keep getting the very last site I published.  All the sites were published to third party servers.  The domain files (still have a preview that look correct and have different file sizes) but keep going back to the last site published. HELP ME PLEASE!! Are the old files still available?!!

    In Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    To open your domain file in Lion or to switch between multiple domain files Cyclosaurus has provided us with the following script that you can make into an Applescript application with Script Editor. Open Script Editor, copy and paste the script below into Script Editor's window and save as an application.
    do shell script "/usr/bin/defaults write com.apple.iWeb iWebDefaultsDocumentPath -boolean no"delay 1
    tell application "iWeb" to activate
    You can download an already compiled version with this link: iWeb Switch Domain.
    Just launch the application, find and select the domain file you want to open and it will open with iWeb. It modifies the iWeb preference file each time it's launched so one can switch between domain files.
    WARNING: iWeb Switch Domain will overwrite an existing Domain.sites2 file if you select to create a new domain in the same folder.  So rename your domain files once they've been created to something other than the default name.
    OT

  • Saving a Form with a Different Name

    I created a  2 forms in Adobe LiveCycle ES2  and saved it. I also opened it in Adobe Pro and extended the rights for end users to save the form. When a user inputs information into the text fields and tries to save it as a different name, the form does not save the filled in data. I am trying to create a workflow between the end user and my department but we dont have access to a database. My goal is to have the user download the form, completed the form and save it with a specific naming convention ( XXXXX-Date), then open email and attach the form ( the submit button will not work with our email client). The department will then review the form and input data into the form and save it with the same name. They will email the form back to the end user. I am hoping to have access to a database within the next 6-12 months and eventually avoid the saving and email but i need to get this solve now.
    I've attached the forms that i am working on.

    Your issue is in the Binding tab of each field. You have it set to None which means exclude the data in this field from the data file. Change it to Normal and it will include that field in the data file.
    Paul

  • Can I get back a file that logic deletes... Well I did but I had thought I saved the file under a different name?

    Hi. I have been using logic pro on the computer at music school... A Mac pro... Anyway, I was recording a friends band. W got some awesome takes down. I was then doing a little post, saved the file as one name and then stared working on it under a new file name. Anyway, logic came up with a splash that asked if I would like to delete the original file, and I clicked yes, as I thought I had saved the session under a different name just earlier. Anyway, I lost everything. Ok... Shirt I thought... But I managed to find everything in the recycle bin. Except one awesome take of an awesome song, I am a little bit heart broken as I've gone though the sessions undo file in quite some detail, but I seem to have lost it. I have access to the file on my Mac at home (MacBook pro, and logic express 8 I think) cool that I can open logic pro files in logic express, but anyway. Anyone want to offer me any solace? I think a solution might be too much to ask for....

    If you were using OSX 10.7 then you could go back to a previous version, but you have overwritten the file.
    Peter

  • Saving png photos with different names..

    Hello guys,
    I am not not so familiar with Labview so i would like some help. I have a Vi which is actually controlling 32 RBG lights.We use DMX protocol..everytime one led is on then we take a picture and then the led goes off..Then the second goes on end so on..we have 8leds in 4corners..So we have corner1_led1,corner1_led2 untill corner4_led8 .So in the end we have 32 png photos saved.What i want is to save the photos with different names and the numbers to start from 1 instead of 0.. For example if we select white light and  save the images as "new" the images are going to be named "new_white_0_0" instead of "new_white_1_1" . Do you have any idea how i can change it?
    Attached current photos names and Vi. 
    Any comment would be helpful.
    Thank you.
    Solved!
    Go to Solution.
    Attachments:
    14_07_21_WMS_RGB LED panel.vi ‏162 KB
    names.png ‏127 KB

    The indexing terminal (the [ i ] in the for loop) starts at 0. When creating your filename, use the "increment" primitive from the numeric palette. Then your file names will start at 1 instead of 0.
    I noticed from your VI that you do a lot of string concatenation to build the file name/path, you can use the format into string and build path VIs to make the block diagram look a little simpler. You could also update the deprecated functions (e.g. the open file) with the modern equivalents.
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • Problem saving files with different name with DFS installed

    I have a server that I have DFS installed and running on. This appears to work fine. There is one problem that I have encountered though:
    On a share I have a folder that is not inheriting rights from it parent object. This works fine with DFS. When I create a new word document and try to save it in this folder with a different name other than the default (doc1.doc) I get an error saying that the user doesn't have permission, but I can save it as the default name of doc1.doc. I can then re-name the file to what I want from windows explorer, open it up in word, work on it and save it again. Even with the new file name I can't do a save-as and save it as a different file.
    All the other folders under the share that inherit rights from the parent folder work.
    eg save-as in \\server\share\folder or below works
    save-as it in \\server\share\no_inheritance or below does not work
    Anyone have any ideas?

    Originally Posted by ndean
    I have a server that I have DFS installed and running on. This appears to work fine. There is one problem that I have encountered though:
    On a share I have a folder that is not inheriting rights from it parent object. This works fine with DFS. When I create a new word document and try to save it in this folder with a different name other than the default (doc1.doc) I get an error saying that the user doesn't have permission, but I can save it as the default name of doc1.doc. I can then re-name the file to what I want from windows explorer, open it up in word, work on it and save it again. Even with the new file name I can't do a save-as and save it as a different file.
    All the other folders under the share that inherit rights from the parent folder work.
    eg save-as in \\server\share\folder or below works
    save-as it in \\server\share\no_inheritance or below does not work
    Anyone have any ideas?
    I have the same problem... how did you solve it?
    Thanks!
    Andres, Blogger

  • Help! Message "pdf could not be saved because an unknown error occurred. Try saving to a different l

    I had the contents of my (dying) ibook transferred onto my emac. The tech created a new user/desktop on the emac. Now, when I try to open PDF files from a website, I get a drop down window saying this:
    "Downloading - users/myname/desktop/xxxxx.pdf could not be saved because an unknown error occurred. Try saving to a different location."
    Points to note: 1) The "xxxxx.pdf" part of the above message changes each time I try to open a pdf document, even the same one, and it does not show the real name of the document (e.g. CollegeApplication.pdf). The xxxxx.pdf is usually written as gibberish, like "86hgkjh.pdf" or "sdfj99f.pdf."
    2) this never happened on my laptop;
    3) the settings are set in Firefox to download pdf's to my desktop;
    4) I have the latest version of Adobe Reader, which I already tried opening before downloading;
    5) the settings are also set to open pdfs using adobe.

    I had the same problem when I installed Firefox 3, but I think the problem is due to my recent hard drive upgrade. Try changing the download location from "Desktop" in Microsoft Internet Explorer and all other browsers (Safari, Firefox, etc.) to whatever default location you prefer. I never use Internet Explorer, but I think somehow my settings were corrupted when I upgraded my hard drive. I found this solution on another site also.

  • When I set (on two different computers) the Location Bar to "Nothing" it resets to "History and bookmarks" as soon as I close and reopen Firefox.

    When I set (on two different computers) the Location Bar option: When using the location bar suggest: to "Nothing" it resets to "History and bookmarks" as soon as I close and reopen Firefox. I am using the latest vesion on Win8 on both computers. One has Bitdefender the othe McKafee. I have no obvious Addware, I use Iobit Uninstaller Advanced Care and and Driver manager on both computers. Until now I have always used Firefox as I refuse to use Explorer and I do not want to have to use Opera or another browser instead.
    Can you please help?

    Have you seen this general article: [[How to fix preferences that won't save]]?
    Also, this might be a glitch with using automatic private browsing mode. Some settings changes might not be saved in that mode.
    If all else fails, do you want to try a manual hack?
    Open your current Firefox settings (AKA Firefox profile) folder using either
    * "3-bar" menu button > "?" button > Troubleshooting Information
    * (menu bar) Help > Troubleshooting Information
    * type or paste about:support in the address bar and press Enter
    In the first table on the page, click the "Show Folder" button. This should launch a new window (Windows Explorer window) showing your current settings files.
    Leaving that window open, switch back to Firefox and Exit, either:
    * "3-bar" menu button > "power" button
    * (menu bar) File > Exit
    Pause while Firefox finishes its cleanup, then open '''prefs.js''' in a text editor by right-clicking it and choosing Edit or Open With. (Double-clicking leads to Windows attempting to execute it, so I do not recommend that.)
    Paste this at the end of the file on its own line:
    user_pref("browser.urlbar.autocomplete.enabled", false);
    Then save the file and close your editor.
    Start Firefox back up again. Did the manual change work?

  • Keep getting a read only message and have to save with different name

    I am editing some pdf files, and every time I save I get the message: "The file may be read only, or another user may have it open.  Please save the document with a different name or in a different folder."
    However, when I right click the file and click properties, it is not listed as a read only file.  Nor is the directory read only.   Having to save each file as a different name is driving me nuts.   Is there a fix?

    Is this file saved on a network drive, or a shared folder?
    If so, it's possible someelse in the network has it open at the same time as you.

  • Save file in different name

    How can I save the screenshot image in different names?
    Example:When button 1 is click save in screenshot1.jpg, then button 1 is click again save in screenshot2.jpg ......etc
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim bmpScreenshot As Bitmap = New Bitmap(Panel1.Width, Panel1.Height - 300, PixelFormat.Format32bppArgb)
    ' Create a graphics object from the bitmap
    Dim gfxScreenshot As Graphics = Graphics.FromImage(bmpScreenshot)
    ' Take screenshot of just the panel control
    gfxScreenshot.CopyFromScreen(Me.PointToScreen(Panel1.Location), New Point(0, 0), Panel1.Size, CopyPixelOperation.SourceCopy)
    ' Save the screenshot
    bmpScreenshot.Save("D:\screenshot.jpg", Imaging.ImageFormat.Jpeg)
    End Sub
    Thanks

    If you only want to number the images like ScreenShot_0000, ScreenShot_0001, and so on...  Then you can use a class scoped integer variable to number them like below.  Also, you can draw the panel directly to a Bitmap without using the CopyFromScreen
    method.
    Public Class Form1
    Private count As Integer = 0
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim bmp As New Bitmap(Panel1.Width, Panel1.Height)
    Panel1.DrawToBitmap(bmp, New Rectangle(Point.Empty, Panel1.Size))
    Dim fn As String = "ScreenShot_" & count.ToString.PadLeft(4, "0"c) & ".jpg"
    Dim saveas As String = IO.Path.Combine("C:\TestFolder", fn)
    bmp.Save(saveas, Imaging.ImageFormat.Jpeg)
    count += 1
    End Sub
    End Class
     However, when you close your application and reopen it again it would start at ScreenShot_0000 again and would overwrite any images that are in that directory that have the same numbered names.  If you want it to automatically detect the last
    numbered file and start with the next number then you can use a While loop in the above code to avoid overwriting the existing images like this.
    Public Class Form1
    Private count As Integer = 0
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim bmp As New Bitmap(Panel1.Width, Panel1.Height)
    Panel1.DrawToBitmap(bmp, New Rectangle(Point.Empty, Panel1.Size))
    Dim fn As String = "ScreenShot_" & count.ToString.PadLeft(4, "0"c) & ".jpg"
    Dim saveas As String = IO.Path.Combine("C:\TestFolder", fn)
    While IO.File.Exists(saveas)
    count += 1
    fn = "ScreenShot_" & count.ToString.PadLeft(4, "0"c) & ".jpg"
    saveas = IO.Path.Combine("C:\TestFolder", fn)
    End While
    bmp.Save(saveas, Imaging.ImageFormat.Jpeg)
    count += 1
    End Sub
    End Class
    If you say it can`t be done then i`ll try it
    Hi IronRazerz,
    Thanks for your solution. I would like to ask you question about open files and rename files, I know that there are out of the question in this thread but the only way I can get the answer through your solution.
    My problem is when I open files "ScreenShot_0000.jpg" and then when I want to rename files the file will rename  "ScreenShot_0001" instant of "ScreenShot_0000.jpg".
    How can I suppose to open and rename files follow by sequence without interrupt?
    Below codes are my modified codes to open and rename files.
    Public Class Form1
    Private count As Integer = 0
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    'rename files
    Dim fn As String = "C:\Users\hwai\Desktop\Capture\ScreenShot_" & count.ToString.PadLeft(4, "0"c) & ".jpg"
    Dim saveas As String = IO.Path.Combine("C:\Users\hwai\Desktop\Capture\", fn)
    My.Computer.FileSystem.RenameFile(saveas, "Rename_" & count.ToString.PadLeft(4, "0"c) & ".jpg")
    count += 1
    End Sub
    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
    'open files
    Dim fn As String = "C:\Users\hwai\Desktop\Capture\ScreenShot_" & count.ToString.PadLeft(4, "0"c) & ".jpg"
    Dim saveas As String = IO.Path.Combine("C:\Users\hwai\Desktop\Capture\", fn)
    Dim ps2 As Process = Process.Start(saveas)
    count += 1
    End Sub
    End Class
    Thanks

  • How to read multiple files of different name using single file adapter

    There are two inbound locations inbound1 and inbound2 , and the files structure present in these two inbound locations are same but the files start with different names example
    (1)files in inbound1 starts with file1,file2...
    (2)files in inbound2 starts with abc1,abc2...
    by using same file adapter with read option how can i read both files....

    Hi K.A.N.N.,
    You can define multiple directories using the above link in 11g and poll for the file as \*.*.
    Alternatively you can use the Synchronous Read and specify the file name at runtime.
    You can also use Pick activity to define multiple branches each with a File Adapter to read from a specified location with specified file name. Although it would contain multiple Adapter Definitions at Development-time, only one of the Adapters will execute at Run-Time.
    Regards,
    Neeraj Sehgal

  • Save the uploaded file in a different name ?

    Has anyone used the com.oreilly.MultipartRequest Class
    which is used to upload a file to a directory.I am able to that
    fine.I now need a way to save the uploaded file to a different name
    when it gets saved in its destination.I am not sure if com.oreilly.MultipartRequest class has a feature or not.Can
    anyone help me out of this please.

    you can create files with your own name.
    in temp directory, orielly package creates all the files you uploaded from the client.
    create FileInputStream of file you need , create FileOutputStream with your new name and write the content to it.
    here is some code,
    MultipartRequest multi = new MultipartRequest(req,tempUserFile.getAbsolutePath(),100*1024*1024); // current dir
              Enumeration files = multi.getFileNames(); // Collection of files
              // it sends to you with the form
              String fileName=null;
              String name =null;
              while(files.hasMoreElements())
                   name = (String)files.nextElement();
                   File f = multi.getFile(name);
                   fileName = multi.getFilesystemName(name);
                   FileInputStream fis = new FileInputStream(f);
    FileOutputStream fos = new FileOutputStream//create outputstreamwith your new name
    now dump contents of inputstream to outputstream.
    hope this helps.
    raheem

  • How do I download a received e-mail into a program "directory file" and open it later by a related program with a different name.

    Each week day afternoon I receive an e-mail bulletin and previously, using AOL, I downloaded it into a directory file located as a part of computer programs and then read it later with a related program with a slightly different name. Now when I try to do this using Mozella Firefox I don't see a way to download the e-mail bulletin into the directory program file and open it with another program related to the directory program. Firefox only shown the file name to read the download with but doesn't give me an option to download it to the program directory file. Please give me some detailed instructions.

    Hello Explorer.ph
    If safari recognizes it as a PDF then when you open it, you should see something in the right corner below the search box that says open in "" and another with "open in another app". If not try tapping the middle of the screen once tomake it appear. You may need to download iBooks, which is free from the AppStore ,to have an app to download it to.
    I hope this helps.
    Imaestro

  • Saving a copy of a document using a new name or location

    I am trying to save a document under a new name and new location.  I cannot find the "Save As" command in pages or keynote.  How do I save a document using a new name or save the document into a new location?

    It's a little different now. Instead of using Save As (which is now gone as you know) use Duplicate then save that document and give it the name and location you want.

  • Unable to copy database with different name in the same instance

    I had a huge database and wanted to try some change optimization changes.
    So wanted to make a copy of the database along with data in the same instance.
    I have tried copy database wizard several times but always see the error as in attachment.
    Can someone let me know how to troubleshoot further?
    If this is not the correct way please suggest how do i copy a database with different name in the same instance along with data.

    Hi Nandu,
    From the screenshot, the error 1813 happens when corrupt database log is attempted to attach to the SQL Server. To work around this issue, please preform the following steps, for more details, please review this
    blog.
    1. Create a new database with same name which you want to recover. Make sure that the MDF file and LDF file have same name with previous database data and log file.
    2. Stop SQL Server. Move original MDF file from old location to new location by replacing just created MDF file. Delete the LDF file of new location just created.
    3. Start SQL Server. At this point, the database is in suspect status.
    4. Make sure that system tables of Master database allows to update the values. Please note that you will be performing this in query window.
    Use Master
    go
    sp_configure 'allow updates',1
    reconfigure with override
    go
    5. Change database mode to emergency mode.
    SELECT *
    FROM sysdatabases
    WHERE name = 'DatabaseName'
    BEGIN
    UPDATE sysdatabases
    SET status = 32768
    WHERE name = ' DatabaseName '
    COMMIT TRAN
    6. Restart SQL Server. Then execute the following DBCC command in query window to create new log file.
    DBCC TRACEON (3604)
    DBCC REBUILD_LOG(databasename,'c:\yourdatabasename_log.ldf')
    GO
    7. Reset the database status using following command.
    sp_RESETSTATUS yourdatabasename
    GO
    8. Turn off the update to system tables of Master database running following script.
    USE MASTER
    GO
    sp_CONFIGURE 'allow updates',0
    RECONFIGURE WITH OVERRIDE
    GO
    9. Reset the database status to previous status.
    BEGIN
    UPDATE sysdatabases
    SET status = (value retrieved in first query of step 5)
    WHERE name = 'DatabaseName‘
    COMMIT TRAN
    GO
    Make sure that you have done all the steps in order and restarted SQL Server where it is mentioned. Also run SQL Server Management Studio as administrator.(Right click-> Run as Administrator)
    Thanks,
    Lydia Zhang

Maybe you are looking for

  • Select Clause in Decode

    Hello there all. I have the following code that executes fine in SQL Plus, but when I compile it in ProC or MS Visual C++ it errors out. Code: EXEC SQL SELECT b.code, b.name INTO :h_code, :h_name FROM prtnr a, prtnr b, liabl c WHERE a.code = :h_incom

  • Export MAM into .war

    Hi, I have imported MAM25.war into NWDS SP13 and made some changes, including to the project name. I set up the NWDS so that when I export the project into a .war and flag the "Run the mobile application" option, it runs and my modifications work. Ho

  • Can a processor in an ipad be replaced?

    I was recently informed the processor in my ipad is broken, can this be fixed or replaced?

  • Uploading documents in KM repository

    Hi All, Iam new to KM.got an requirment to work on KM API's as the requirement is i need to provide an interface to the user in that where he will upload the documents into km repository and that document should dynamically reside at the different fo

  • Why can I not connect to the itunes store on my iPhone?

    Why can I not connect to the itunes store on my iPhone? Heard that other people are having the same problem and that Apple needs to fix it.