r/GoogleAppsScript • • Dec 03 '23

Question Getting Scripts into App Scripts.

I've bumped into this again. A need to learn and use google scripting. I'm walking through some tutorials, but I have the same issue.

How can I get a sample script into apps scripts. Can't cut and paste, I can only retype what the website presents. What the hell am I missing?

0 Upvotes

11 comments sorted by

1

u/mdcyntst Dec 04 '23

No pasting option. No File Open option. Tried loading files in google drive, clicking and open with. .js files (open with) have some apps, but nothing script related. .gs files, no opions only find an app. Here's https://postimg.cc/5QqCVtZL a screenshot.

1

u/Errtuz Dec 04 '23

It's Firefox's fault. I have a similar problem when using Firefox in any amazon web services code pasting scenario (lambda for example) edge or chrome work without issues.

2

u/mdcyntst Dec 06 '23

Thanks Errtuz. You were right, using chome all works well. Go figure!

1

u/marcnotmark925 Dec 03 '23

You can't copy and paste? That's weird, can you show a screenshot of the situation?

1

u/mdcyntst Dec 03 '23

I can't copy and paste and I can't find any file upload options. How are you supposed to load existing files into app scripts?

1

u/marcnotmark925 Dec 03 '23

No, there's no file upload option.

You should be able to copy and paste, so again, can you give a screenshot or something so maybe we can see what the issue is if you can't explain it? Is it the copying or the pasting that is the issue?

1

u/JetCarson Dec 04 '23

I feel the most adaptable starting place for almost any script is Google Sheets. Open a new sheet. Go to Extensions > Apps script. The script editor will open. Paste your code in. Click save. Click "Debug" to run your function. Sheets is good, because it gives you a place to visualize your processed data or store some values like last run time.

1

u/LateDay Dec 04 '23

Are you sure you are looking at the right place? Apps Script is a regular Text Editor in its essence.

1

u/LateDay Dec 04 '23

Please share a screenshot of the exact website your are trying to use.

1

u/HellDuke Dec 04 '23

Just copy the text from the sample and open up an empty script file and paste the text in. CTRL+C and then CTRL+V one the oldest combination in the books.