palimadra / gmail-delay-send

Automatically exported from code.google.com/p/gmail-delay-send
5 stars 0 forks source link

Is there a way to change the source file? #54

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

anyone know how to make changes to the source file? 
http://code.google.com/p/gmail-delay-send/source/browse/src/downloaded/GmailDela
ySend.js?r=463b8deb89da0bddc5e0e4f9f2922ed7a8c9dca9

Original issue reported on code.google.com by lin.cs.s...@gmail.com on 14 Feb 2013 at 10:12

GoogleCodeExporter commented 9 years ago
Hello lin.cs.samuel,

As you have figured out gmail-delay-send tries to download the code that it 
needs to run in order for things to be update-able w/o asking users to install 
the script again.

I see that you have asked in another issue ID how to install a patch of the 
script. How familiar are you with git and/or the patch unix utility?  There are 
a few ways we can go about this, but it depends on what tools you're 
comfortable with using.

Thanks,
-Blair

Original comment by blairk...@gmail.com on 15 Feb 2013 at 3:28

GoogleCodeExporter commented 9 years ago
Issue 52 has been merged into this issue.

Original comment by blairk...@gmail.com on 15 Feb 2013 at 3:28

GoogleCodeExporter commented 9 years ago
Hello Blair,

I am familiar with git, i am using window7, so i am not familiar with unix 
utility

Original comment by lin.cs.s...@gmail.com on 19 Feb 2013 at 3:08

GoogleCodeExporter commented 9 years ago
Great!

Again, sorry this isn't a straight forward process.. :-(

High level view of what we're going to do:
  - Create a git clone of the project
  - Apply the patch to your clone
  - Copy the git project into a new google scripts project
  - Change a flag that pulls code from code.google.com and instead uses what is installed into the project.
  - Done!

OK, so the first step would be to make a clone of the git repo for the project 
(see here for url https://code.google.com/p/gmail-delay-send/source/checkout)

Then you need to apply the patch.. This might be tricky to do on windows 7 
(http://stackoverflow.com/questions/3418277/how-to-apply-git-diff-patch-without-
git-installed). If you had a unix machine available the patch utility is built 
in..

Once you get the patch applied locally.. You have a git version of what you 
want to run via google scripts.. Go to google docs and create a brand new 
spreadsheet. 

Toole -> Script editor -> blank project
Create a new file (File -> New Script file) for each file in the repo under 
git/src/download and git/src/user_installed and copy paste the contents

Finally, the first line of runGmailDelaySend.js change the RUN_LOCAL_VERSION 
from 'false' to 'true'

Close the script editor, reopen the spreadsheet and you should be good to go!

Original comment by blairk...@gmail.com on 20 Feb 2013 at 2:32

GoogleCodeExporter commented 9 years ago

Original comment by blairk...@gmail.com on 18 May 2013 at 1:35