##《空园子》 杨键
我是一座空园子,
我是一条空河流,
我是一座空山,
我是一个空了的妈妈,
// 调用PhotoShop按照Indesign中尺寸修改图像大小 | |
Main(); | |
function Main() { | |
var image = app.selection[0].images[0]; | |
var imagePath = image.itemLink.filePath; | |
var hScale = image.horizontalScale; | |
var vScale = image.verticalScale; | |
CreateBridgeTalkMessage(); |
Dir *.png | rename-item -newname { $_.name -replace ".png",".pdg" } | |
Dir *.pdg | rename-item -newname { "000" + $_.name } | |
//Batch Incremented File Rename | |
$files = Get-ChildItem c:\yourpath\*.ext | |
$id = 1 | |
$files | foreach { | |
Rename-Item -Path $_.fullname -NewName (($id++).tostring() + $_.extension) | |
} |
##《空园子》 杨键
我是一座空园子,
我是一条空河流,
我是一座空山,
我是一个空了的妈妈,
#targetengine "keepWindowBounds" | |
(function() { | |
app.addEventListener("afterOpen", setBounds); | |
function setBounds(ev) { | |
var layoutWin = ev.parent, | |
bounds = eval('[' + app.extractLabel('bounds') + ']'); | |
layoutWin.addEventListener("beforeClose", insertBounds); | |
function insertBounds(ev) { |
var doc = activeDocument, | |
f = File.openDialog ('选择文件 ', '*.pdf'), | |
p = prompt ('置入第 1 到?页', 5, '指定页数') | |
i = 0; | |
for (; ++i <= p;) { | |
app.preferences.setIntegerPreference('plugin/PDFImport/PageNumber', i); | |
doc.placedItems.add().file = f; | |
} | |
app.preferences.setIntegerPreference('plugin/PDFImport/PageNumber', 1); |
##纸质书籍电子版制作一般流程
我们一般从步骤2开始。
License Agreement (http://indesignsecrets.com/doc/AdobeTemplatesExhibitB.pdf) | |
http://publishing-secrets.com/templates/ZIPs/Book1.indt.zip | |
http://publishing-secrets.com/templates/ZIPs/Book2.indt.zip | |
http://publishing-secrets.com/templates/ZIPs/Photobook 1.indt.zip | |
http://publishing-secrets.com/templates/ZIPs/Photobook 2.indt.zip | |
http://publishing-secrets.com/templates/ZIPs/Recipe Book.indt.zip | |
http://publishing-secrets.com/templates/ZIPs/Brochure1.indt.zip | |
http://publishing-secrets.com/templates/ZIPs/Brochure2.indt.zip | |
http://publishing-secrets.com/templates/ZIPs/Brochure3.indt.zip |
Credit and Usage: http://www.mobileread.com/forums/showthread.php?t=162972 |
#!/usr/bin/python | |
# -*- coding:utf-8 -*- | |
""" download all cchere posts of the author from pre-collected postlist | |
currently the list was collected manually | |
TODO: get the postlist from cchere user home automatically | |
NOTE: Fanqiang is needed as the exists of GFW | |
code based on: https://code.google.com/p/cchere-thread-saver/ | |
""" |
#!/usr/bin/python | |
# -*- coding:utf-8 -*- | |
import mechanize | |
def check_new_posts(username, password): | |
b = mechanize.Browser() | |
b._factory.encoding = "utf8" | |
b.set_handle_robots(False) | |
b.addheaders = [('User-Agent','Mozilla/4.0(compatible; MSIE 6.0; Windows 98;)')] |