Overview
In Star Wars: Galaxies you can use macros to combine many actions into one. It's great for any repetitive tasks you might need to perform.
Format: <number> <macro-name> <icon-name> <color> <action commands>;
It has been a while but I believe the number is auto-generated for each new line by the in-game macro editor.
Macros
version: 0000 1 LootandHarvest diseased #ffffff /pause 0.25;/peace;/pause 0.1;/harvest;/pause 0.1;/loot all; 3 Dump shields #ffffff /pause 0.25;/dump 4 Center dizzy #ffffff /pause 0.25;/centerOfBeing;/pause 32;/macro Center 5 AttackStart meleeHammerfist #ffffff /pause 0.25;/intimidate1;/pause .2;/unarmedBlind1;/pause .2;/unarmedStun1; 6 AutoSample immobilized #ffffff /pause 0.25;/pause 10;/ui action defaultButton;/pause 10;/mood none;/macro AutoSample 7 Artisan1 gallopStop #ffffff /pause 0.25;/ui action toolbarSlot00;/pause 2;/selectdraftschematic 14;/nextC;/pause 5;/nextC;/nextC;/createprototype practice no item;/createprototype practice no item;/pause 12;/ui action toolbarSlot01;/pause 2;/selectdraftschematic 14;/nextC;/pause 5;/nextC;/nextC;/createprototype practice no item;/createprototype practice no item;/pause 12;/ui action toolbarSlot02;/pause 2;/selectdraftschematic 14;/nextC;/pause 5;/nextC;/nextC;/createprototype practice no item;/createprototype practice no item;/pause 12;/macro Artisan1; 8 SpinAttack citypardon #ffffff /pause 0.25;/unarmedSpinAttack1;/pause .2;/unarmedSpinAttack1;/pause .2;/unarmedSpinAttack1;/pause .2;/macro SpinAttack 9 LootOnly shipOperations #ffffff /pause 0.25;/loot all 10 ArmorToggle pilotingShip #ffffff /pause 0.25;/ui action toolbarPane05;/pause .2;/ui action toolbarSlot01;/pause .2;/ui action toolbarSlot02;/pause .2;/ui action toolbarSlot03;/pause .2;/ui action toolbarSlot04;/pause .2;/ui action toolbarPane01;/pause .2 11 Pistol actionShot1 #ffffff /pause 0.25;/ui action toolbarPane03;/pause .2;/ui action toolbarSlot23; 12 Rifle actionShot1 #ffffff /pause 0.25;/ui action toolbarPane01;/pause .2;/ui action toolbarSlot23; 13 MouseLootAndHarvest CMD_uiCombatTarget #ffffff /pause 0.25;/ui action targetAtCursor;/loot all;/pause .1;/harvest;/pause .1;/ui action targetAtCursorStop;/macro MouseLootAndHarvest; 14 AutoForage regeneration #ffffff /pause 0.25;/forage;/pause 10;/forage;/pause 10;/forage;/pause 10;/prone;/pause .5;/stand;/pause .5;/prone;/pause .5;/stand;/pause .5;/prone;/pause .5;/stand;/pause .5;/prone;/pause .5;/stand;/pause .5;/prone;/pause .5;/stand;/pause .5;/prone;/pause .5;/stand;/pause .5;/prone;/pause .5;/stand;/pause .5;/prone;/pause .5;/stand;/pause .5;/prone;/pause .5;/stand;/pause .5;/prone;/pause .5;/stand;/pause .5;/prone;/pause .5;/stand;/pause .5;/prone;/pause .5;/stand;/pause .5;/prone;/pause .5;/stand;/pause .5;/prone;/pause .5;/stand;/pause .5;/prone;/pause .5;/stand;/pause .5;/prone;/pause .5;/stand;/pause .5;/prone;/pause .5;/stand;/pause .5;/prone;/pause .5;/stand;/pause .5;/macro AutoForage 15 TempHealthShot spam #ffffff /pause 0.25;/bodyshot2;/pause 2;/macro TempHealthShot 16 ArtisanTest diagnose #ffffff /pause 0.25;/ui action toolbarSlot00;/pause 2;/selectdraftschematic 14; 17 PetGrindAttack eweapons #ffffff /pause 0.25;/say a; 18 MouseHarvestOnly changeJuggle #ffffff /pause 0.25;/ui action targetAtCursor;/harvest;/pause 1;/ui action targetAtCursorStop;/macro MouseHarvestOnly; 19 Train_Follow dance #ffffff /pause 0.25;/tellpet follow; 20 Train_Attack aim #ffffff /pause 0.25;/tellpet attack; 21 Train_Stay assist #ffffff /pause 0.25;/tellpet stay; 22 Train_Store CMD_uiDataPad #ffffff /pause 0.25; 23 Train_Guard fireHeavyWeapon #ffffff /pause 0.25;/tellpet guard; 24 Train_Patrol tumbling #ffffff /pause 0.25;/tellpet patrol; 25 Train_Trick1 dance_flourish1 #ffffff /pause 0.25;/tellpet trick1; 26 Train_Trick2 dance_flourish2 #ffffff /pause 0.25;/tellpet trick2; 27 Train_Group customizeDroid #ffffff /pause 0.25;/tellpet group; 28 Train_Follow_Target pumpReactor #ffffff /pause 0.25;/tellpet followtarget; 29 Train_Befriend requestDroidHeal #ffffff /pause 0.25;/tellpet befriend; 30 Train_Special1 bith_song1 #ffffff /pause 0.25;/tellpet special1; 31 Train_Special2 bith_song2 #ffffff /pause 0.25;/tellpet special2; 32 Train_Ranged throwGrenade #ffffff /pause 0.25;/tellpet ranged; 33 Train_Transfer pointright #ffffff /pause 0.25;/tellpet transfer; 34 Train_fo distract #ffffff /pause 0.25;/tellpet fo; 35 Train_at aim #ffffff /pause 0.25;/tellpet at; 36 Train_sto CMD_uiDataPad #ffffff /pause 0.25;/tellpet sto; 37 Train_sta assist #ffffff /pause 0.25;/tellpet sta; 38 Train_gu pumpReactor #ffffff /pause 0.25;/tellpet gu; 39 Train_pa tumbling #ffffff /pause 0.25;/tellpet pa; 40 Train_t1 dance_flourish1 #ffffff /pause 0.25;/tellpet t1; 41 Train_t2 dance_flourish1 #ffffff /pause 0.25;/tellpet t2; 42 Train_gr customizeDroid #ffffff /pause 0.25;/tellpet gr; 43 Train_ft pumpReactor #ffffff /pause 0.25;/tellpet ft; 44 Train_bf requestDroidHeal #ffffff /pause 0.25;/tellpet bf; 45 Train_tr pointright #ffffff /pause 0.25;/tellpet tr; 46 Train_s1 bith_song1 #ffffff /pause 0.25;/tellpet s1; 47 Train_s2 bith_song2 #ffffff /pause 0.25;/tellpet s2; 48 Train_ra throwGrenade #ffffff /pause 0.25;/tellpet ra; 49 CenterOfBeing CMD_uiRadarRangeIncrease #ffffff /pause 0.25;/centerOfBeing;/pause 32;/macro CenterOfBeing; 50 HarvestOnly frozen #ffffff /pause 0.25;/peace;/pause 0.1;/harvest; 51 Train_Wedge triangle #ffffff /pause 0.25;/tellpet wedge; 52 Train_Column meleeSweep #ffffff /pause 0.25;/tellpet column;