Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Save as Copy Scripting

Featured Replies

  • Newbies

Here's the problem. For some reason we want to to take a file, call it theOriginalFile.fp7, and

first make a compacted copy of theOriginalFile.fp7 and call it theCopiedFile.fp7. Next we want to take that file (theCopiedFile.fp7)and make a clone of it.

So I have automated the first portion. Takes theOriginalFile.fp7 and makes a compacted file, but I can't seem to "select/go to" the new file and continue with scripting.

In the Save as script step one can open the file after saving, but i dont seem to be able to continue.

Note: This is all part of the scripting steps, i'm not trying to manually copy and clone each file, I know how to do that.

I will explain further if needed, because I am pretty sure that I didnt explain it well. Thanks for any help

Edited by Guest

If i understand you correctly after you open the saved file, the clone part of it needs to be run from a script within the opened file.

This can be done by performing an external script from the newley created file.

HTH

  • Author
  • Newbies

Im not sure how to respond to that, I created the script in the original file. All the scripts are then copied into the new file but I dont know how to access them (from the original script), being that they dont exist yet?

I know thats sort of unclear, but how does one run a script that doesnt exist yet.

To run the save as script correctly one must run it from the local file.

I havent tested this but my thought is by saving the copied file with the same name and file location each time. You should be able to set the exernal script to point to that file.

Of course you would have do it manually the first time, that way the file would be there as well as the script. Every time after that as long as the file was named the same it would find the file and the script.

I am afraid thats all I can come up with. If someone else has a solution maybe they will share it with us.

  • Author
  • Newbies

The only problem with that is that one can't save a copy of a file to the same name.

I think you missed what I was trying to get at, I attached a test.zip file.

The first file "test" has two scripts(test and test2)

First in the orignal file "test" run the "test" script this will replace the "test copy" file

then "test" performs an external script "test2" in the test copy file. this will make another file called test clone. Ending up with 3 files, the original a test copy, and test clone

I had all the files on my desktop you may have to reset the filepaths when you unzip the two files.

HTH

test.zip

  • Author
  • Newbies

Now I see what you mean. Thanks. It works sort of. I have to go make the whole thing dynamic but I'll post if it all works or not.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.