Skip to content

Instantly share code, notes, and snippets.

@gareththomasnz
Created August 30, 2020 15:54
Show Gist options
  • Save gareththomasnz/db1b7b68624958ded171458c8bab37ab to your computer and use it in GitHub Desktop.
Save gareththomasnz/db1b7b68624958ded171458c8bab37ab to your computer and use it in GitHub Desktop.
iMacros RedBubble upload script and POS numbers for all colors and sizers
Name Path Tags
Book A E:\code\redBubble\Book\Book 2800\Book0.png book,tome,item,game,gamer,gaming,tile,16 by 16,pixelated,pixel,pixel art,retro,16 bit,8 bit
Book B E:\code\redBubble\Book\Book 2800\Book1.png book,tome,item,game,gamer,gaming,tile,16 by 16,pixelated,pixel,pixel art,retro,16 bit,8 bit
Book C E:\code\redBubble\Book\Book 2800\Book2.png book,tome,item,game,gamer,gaming,tile,16 by 16,pixelated,pixel,pixel art,retro,16 bit,8 bit
Book D E:\code\redBubble\Book\Book 2800\Book3.png book,tome,item,game,gamer,gaming,tile,16 by 16,pixelated,pixel,pixel art,retro,16 bit,8 bit
Book E E:\code\redBubble\Book\Book 2800\Book4.png book,tome,item,game,gamer,gaming,tile,16 by 16,pixelated,pixel,pixel art,retro,16 bit,8 bit
Book F E:\code\redBubble\Book\Book 2800\Book5.png book,tome,item,game,gamer,gaming,tile,16 by 16,pixelated,pixel,pixel art,retro,16 bit,8 bit
Book G E:\code\redBubble\Book\Book 2800\Book6.png book,tome,item,game,gamer,gaming,tile,16 by 16,pixelated,pixel,pixel art,retro,16 bit,8 bit
Book H E:\code\redBubble\Book\Book 2800\Book7.png book,tome,item,game,gamer,gaming,tile,16 by 16,pixelated,pixel,pixel art,retro,16 bit,8 bit
Book I E:\code\redBubble\Book\Book 2800\Book8.png book,tome,item,game,gamer,gaming,tile,16 by 16,pixelated,pixel,pixel art,retro,16 bit,8 bit
Book J E:\code\redBubble\Book\Book 2800\Book9.png book,tome,item,game,gamer,gaming,tile,16 by 16,pixelated,pixel,pixel art,retro,16 bit,8 bit
Book K E:\code\redBubble\Book\Book 2800\Book10.png book,tome,item,game,gamer,gaming,tile,16 by 16,pixelated,pixel,pixel art,retro,16 bit,8 bit
Book L E:\code\redBubble\Book\Book 2800\Book11.png book,tome,item,game,gamer,gaming,tile,16 by 16,pixelated,pixel,pixel art,retro,16 bit,8 bit
Book M E:\code\redBubble\Book\Book 2800\Book12.png book,tome,item,game,gamer,gaming,tile,16 by 16,pixelated,pixel,pixel art,retro,16 bit,8 bit
Book N E:\code\redBubble\Book\Book 2800\Book13.png book,tome,item,game,gamer,gaming,tile,16 by 16,pixelated,pixel,pixel art,retro,16 bit,8 bit
Book O E:\code\redBubble\Book\Book 2800\Book14.png book,tome,item,game,gamer,gaming,tile,16 by 16,pixelated,pixel,pixel art,retro,16 bit,8 bit
Book P E:\code\redBubble\Book\Book 2800\Book15.png book,tome,item,game,gamer,gaming,tile,16 by 16,pixelated,pixel,pixel art,retro,16 bit,8 bit
Book Q E:\code\redBubble\Book\Book 2800\Book16.png book,tome,item,game,gamer,gaming,tile,16 by 16,pixelated,pixel,pixel art,retro,16 bit,8 bit
Book R E:\code\redBubble\Book\Book 2800\Book17.png book,tome,item,game,gamer,gaming,tile,16 by 16,pixelated,pixel,pixel art,retro,16 bit,8 bit
Book S E:\code\redBubble\Book\Book 2800\Book18.png book,tome,item,game,gamer,gaming,tile,16 by 16,pixelated,pixel,pixel art,retro,16 bit,8 bit
Function GetFileNames([string]$path, [string]$outputFile)
{
$list = Get-ChildItem $path -Recurse
$list | Select-Object BaseName, FullName | Export-Csv $outputFile
}
GetFileNames ".\" "C:\users\rakka\desktop\Output.csv"
VERSION BUILD=12.0.501.6698
TAB T=1
TAB CLOSEALLOTHERS
SET !VAR1 "Pixel "
SET !PLAYBACKDELAY 1.00
SET !DATASOURCE "E:\\code\\RedBubble\\Books.csv"
SET !LOOP 2
SET !DATASOURCE_LINE {{!LOOP}}
URL GOTO=https://www.redbubble.com/portfolio/images/new?ref=account-nav-dropdown
TAG POS=1 TYPE=INPUT:FILE ATTR=ID:select-image-single CONTENT={{!COL2}}
' Standard Print Clothing
TAG POS=1 TYPE=DIV ATTR=CLASS:slide-overlay
TAG POS=1 TYPE=INPUT:RANGE ATTR=CLASS:design-size CONTENT=80
' Large Print Clothing
TAG POS=2 TYPE=DIV ATTR=CLASS:slide-overlay
TAG POS=1 TYPE=INPUT:RANGE ATTR=NAME:design-size CONTENT=80
' Contrast Tanks
TAG POS=3 TYPE=DIV ATTR=CLASS:slide-overlay
TAG POS=3 TYPE=DIV ATTR=TXT:Disabled
TAG POS=2 TYPE=INPUT:RANGE ATTR=CLASS:design-size CONTENT=60
TAG POS=1 TYPE=INPUT:TEXT ATTR=CLASS:sp-input CONTENT=#3b4352
' Women's Chiffon Tops
TAG POS=4 TYPE=DIV ATTR=CLASS:slide-overlay
TAG POS=4 TYPE=DIV ATTR=TXT:Disabled
TAG POS=3 TYPE=INPUT:RANGE ATTR=CLASS:design-size CONTENT=60
TAG POS=2 TYPE=INPUT:TEXT ATTR=CLASS:sp-input CONTENT=#3b4352
' Graphic T-Shirt Dress
TAG POS=5 TYPE=DIV ATTR=CLASS:slide-overlay
TAG POS=5 TYPE=DIV ATTR=TXT:Disabled
TAG POS=4 TYPE=INPUT:RANGE ATTR=CLASS:design-size CONTENT=60
TAG POS=3 TYPE=INPUT:TEXT ATTR=CLASS:sp-input CONTENT=#3b4352
' Graphic T-Shirts
TAG POS=6 TYPE=DIV ATTR=CLASS:slide-overlay
TAG POS=6 TYPE=DIV ATTR=TXT:Disabled
TAG POS=5 TYPE=INPUT:RANGE ATTR=CLASS:design-size CONTENT=60
TAG POS=4 TYPE=INPUT:TEXT ATTR=CLASS:sp-input CONTENT=#3b4352
' A-Line Dress
TAG POS=7 TYPE=DIV ATTR=CLASS:slide-overlay
TAG POS=7 TYPE=DIV ATTR=TXT:Disabled
TAG POS=6 TYPE=INPUT:RANGE ATTR=CLASS:design-size CONTENT=60
TAG POS=5 TYPE=INPUT:TEXT ATTR=CLASS:sp-input CONTENT=#3b4352
' Stickers
' Phone Cases & Skins
TAG POS=9 TYPE=DIV ATTR=CLASS:slide-overlay
TAG POS=7 TYPE=INPUT:RANGE ATTR=CLASS:design-size CONTENT=20
TAG POS=6 TYPE=INPUT:TEXT ATTR=CLASS:sp-input CONTENT=#3b4352
' Phone Wallets
TAG POS=10 TYPE=DIV ATTR=CLASS:slide-overlay
TAG POS=8 TYPE=INPUT:RANGE ATTR=CLASS:design-size CONTENT=50
TAG POS=7 TYPE=INPUT:TEXT ATTR=CLASS:sp-input CONTENT=#3b4352
' Pillows & Totes
TAG POS=11 TYPE=DIV ATTR=CLASS:slide-overlay
TAG POS=9 TYPE=INPUT:RANGE ATTR=CLASS:design-size CONTENT=50
TAG POS=8 TYPE=INPUT:TEXT ATTR=CLASS:sp-input CONTENT=#3b4352
' Floor Pillows
TAG POS=12 TYPE=DIV ATTR=CLASS:slide-overlay
TAG POS=12 TYPE=DIV ATTR=TXT:Disabled
TAG POS=2 TYPE=INPUT:RANGE ATTR=NAME:design-size CONTENT=100
TAG POS=9 TYPE=INPUT:TEXT ATTR=CLASS:sp-input CONTENT=#3b4352
' Prints, Cards & Posters
TAG POS=12 TYPE=DIV ATTR=CLASS:slide-overlay
TAG POS=10 TYPE=INPUT:TEXT ATTR=CLASS:sp-input CONTENT=#3b4352
' Pouches, Laptop Skins & Sleeves
TAG POS=14 TYPE=DIV ATTR=CLASS:slide-overlay
TAG POS=10 TYPE=INPUT:RANGE ATTR=CLASS:design-size CONTENT=50
TAG POS=11 TYPE=INPUT:TEXT ATTR=CLASS:sp-input CONTENT=#3b4352
' Duvets
TAG POS=15 TYPE=DIV ATTR=CLASS:slide-overlay
TAG POS=15 TYPE=DIV ATTR=TXT:Disabled
TAG POS=11 TYPE=INPUT:RANGE ATTR=CLASS:design-size CONTENT=100
TAG POS=12 TYPE=INPUT:TEXT ATTR=CLASS:sp-input CONTENT=#3b4352
' Mugs
TAG POS=16 TYPE=DIV ATTR=CLASS:slide-overlay
TAG POS=12 TYPE=INPUT:RANGE ATTR=CLASS:design-size CONTENT=30
TAG POS=13 TYPE=INPUT:TEXT ATTR=CLASS:sp-input CONTENT=#3b4352
' Travel Mugs
TAG POS=17 TYPE=DIV ATTR=CLASS:slide-overlay
TAG POS=13 TYPE=INPUT:RANGE ATTR=CLASS:design-size CONTENT=50
TAG POS=14 TYPE=INPUT:TEXT ATTR=CLASS:sp-input CONTENT=#3b4352
' Leggings
TAG POS=18 TYPE=DIV ATTR=CLASS:slide-overlay
TAG POS=18 TYPE=DIV ATTR=TXT:Disabled
TAG POS=14 TYPE=INPUT:RANGE ATTR=CLASS:design-size CONTENT=20
TAG POS=15 TYPE=BUTTON:SUBMIT ATTR=TXT:Vertically
TAG POS=15 TYPE=BUTTON:SUBMIT ATTR=TXT:Horizontally
TAG POS=15 TYPE=INPUT:TEXT ATTR=CLASS:sp-input CONTENT=#3b4352
TAG POS=26 TYPE=BUTTON:SUBMIT ATTR=CLASS:rb-button<SP>pattern-design
' Mini Skirts
TAG POS=19 TYPE=DIV ATTR=CLASS:slide-overlay
TAG POS=15 TYPE=INPUT:RANGE ATTR=CLASS:design-size CONTENT=20
TAG POS=16 TYPE=BUTTON:SUBMIT ATTR=TXT:Vertically
TAG POS=16 TYPE=BUTTON:SUBMIT ATTR=TXT:Horizontally
TAG POS=16 TYPE=INPUT:TEXT ATTR=CLASS:sp-input CONTENT=#3b4352
TAG POS=28 TYPE=BUTTON:SUBMIT ATTR=CLASS:rb-button<SP>pattern-design
' Scarves
TAG POS=20 TYPE=DIV ATTR=CLASS:slide-overlay
TAG POS=20 TYPE=DIV ATTR=TXT:Disabled
TAG POS=16 TYPE=INPUT:RANGE ATTR=CLASS:design-size CONTENT=100
TAG POS=17 TYPE=INPUT:TEXT ATTR=CLASS:sp-input CONTENT=#3b4352
' Tablet Cases & Skins
TAG POS=21 TYPE=DIV ATTR=CLASS:slide-overlay
TAG POS=17 TYPE=INPUT:RANGE ATTR=CLASS:design-size CONTENT=50
TAG POS=18 TYPE=INPUT:TEXT ATTR=CLASS:sp-input CONTENT=#3b4352
' Drawstring Bags
TAG POS=22 TYPE=DIV ATTR=CLASS:slide-overlay
TAG POS=18 TYPE=INPUT:RANGE ATTR=CLASS:design-size CONTENT=60
TAG POS=19 TYPE=INPUT:TEXT ATTR=CLASS:sp-input CONTENT=#3b4352
' Spiral Notebooks
TAG POS=23 TYPE=DIV ATTR=CLASS:slide-overlay
TAG POS=19 TYPE=INPUT:RANGE ATTR=CLASS:design-size CONTENT=50
TAG POS=20 TYPE=INPUT:TEXT ATTR=CLASS:sp-input CONTENT=#3b4352
' Hardcover Journals
TAG POS=24 TYPE=DIV ATTR=CLASS:slide-overlay
TAG POS=24 TYPE=DIV ATTR=TXT:Disabled
TAG POS=20 TYPE=INPUT:RANGE ATTR=CLASS:design-size CONTENT=40
TAG POS=21 TYPE=INPUT:TEXT ATTR=CLASS:sp-input CONTENT=#3b4352
TAG POS=39 TYPE=BUTTON:SUBMIT ATTR=CLASS:rb-button<SP>pattern-design
' Clock
TAG POS=25 TYPE=DIV ATTR=CLASS:slide-overlay
TAG POS=21 TYPE=INPUT:RANGE ATTR=CLASS:design-size CONTENT=70
TAG POS=22 TYPE=INPUT:TEXT ATTR=CLASS:sp-input CONTENT=#3b4352
' Art Board
TAG POS=26 TYPE=DIV ATTR=CLASS:slide-overlay
TAG POS=26 TYPE=DIV ATTR=TXT:Disabled
TAG POS=22 TYPE=INPUT:RANGE ATTR=CLASS:design-size CONTENT=100
TAG POS=23 TYPE=INPUT:TEXT ATTR=CLASS:sp-input CONTENT=#3b4352
' Acrylic Block
TAG POS=27 TYPE=DIV ATTR=CLASS:slide-overlay
TAG POS=23 TYPE=INPUT:RANGE ATTR=CLASS:design-size CONTENT=100
TAG POS=24 TYPE=INPUT:TEXT ATTR=CLASS:sp-input CONTENT=#3b4352
' Wall Tapestry
TAG POS=28 TYPE=DIV ATTR=CLASS:slide-overlay
TAG POS=28 TYPE=DIV ATTR=TXT:Disabled
TAG POS=24 TYPE=INPUT:RANGE ATTR=CLASS:design-size CONTENT=100
TAG POS=25 TYPE=INPUT:TEXT ATTR=CLASS:sp-input CONTENT=#3b4352
TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:work[title_en] CONTENT={{!VAR1}}{{!COL1}}
TAG POS=1 TYPE=TEXTAREA ATTR=NAME:work[tag_field_en] CONTENT={{!COL3}}
TAG POS=2 TYPE=INPUT:CHECKBOX ATTR=NAME:work[media_codes][drawing] CONTENT=YES
TAG POS=2 TYPE=INPUT:CHECKBOX ATTR=NAME:work[media_codes][digital] CONTENT=YES
' TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=NAME:work[collection_ids][948661] CONTENT=YES
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=NAME:work[collection_ids][952920] CONTENT=YES
TAG POS=2 TYPE=INPUT:RADIO ATTR=NAME:work[hidden]
TAG POS=1 TYPE=SELECT ATTR=NAME:work[default_product] CONTENT=%sticker
TAG POS=2 TYPE=INPUT:RADIO ATTR=NAME:work[safe_for_work]
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=NAME:rights_declaration CONTENT=YES
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=NAME:commit
WAIT SECONDS=30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment