Jump to content
Welcome to InsanelyMac Forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


  • Content count

  • Joined

  • Last visited

About JohnnyR

  • Rank
    InsanelyMac Protégé
  1. It is cell samples from the retina of rats. Thanks for your suggestion. I'm not familiar with imagemagick but I'll sure have a look at it now.
  2. I am a developmental biologist carrying out experiments on a type of microscope known as a Confocal Laser Scanning Microscope (CSLM). Basically, this is a microscope coupled to some lasers which allow fluorescently-labelled parts of a biological sample to be imaged in high detail. For each sample there will be a set of two images produced, named and numbered as follows: sample01_g.tif sample01_r.tif Each image represents one fluorescent wavelength and correspond to green ( g ) and red ( r ). These images are in rgb colour. I want to produce a merge of these two channels to generate a new TIFF file such that: Green channel is taken from sample01_g.tif Red channel is taken from sample01_r.tif Which would show me how the different channels co-localise, or not. This is fine to do by hand in Photoshop, but takes a long time when you have a couple of hundred images to process. So, what I would like to do is write a script that batch automates the process, like a droplet. I have the process outlined below: 1. Create a new RGB TIFF called sample01_merge.tif 2. Take the green channel from sample01_g.tif and copy it to the green channel of sample01_merge.tif 3. Take the red channel from sample01_r.tif and copy it to the red channel of sample01_merge.tif 4. Save sample01_merge.tif into a folder named "Merged Images" on the desktop 5. Close the opened images 6. Go to next set of images –> sample02_g.tif and sample02_r.tif 7. Create a new RGB TIFF called sample02_merge.tif....and go through step 2-6, untill the last set of images has been processed. I have never used Applescript before and would love to learn, but I am making slow progress and would like to have this problem solved sooner than I will be able to do so by myself. So... I was wondering if anyone could give me some advice on how to go about doing this? Any help will be greatly appreciated! Best regards, John