As it clearly states on the web page “AppleScript: Features” :

APPLESCRIPT LANGUAGE GUIDE
Have examples and constructs of the AppleScript language at your fingertips. AppleScript Language Guide, updated for Leopard, is the essential guide for scripters and developers.

However, the updated AppleScript Language Guide is nowhere to be found. It’s just so frustrating! So I sent a feedback regarding this matter.

Today while checking out my Gmail inbox, I’m surprised to find that there is a message titled “Re: ADC Feedback”. Here’s the reply from ADC:

Please include the line below in follow-up emails for this request.

Follow-up: 39503001

Re: AppleScript Language Guide

Hello,

This email is in response to your query regarding the AppleScript Language Guide.

Please know that this guide has been updated for Mac OS X Leopard and should be published shortly. We ask that you please stay tuned to the ADC website for any late breaking updates.

I hope you find this information useful. Please do not hesitate to contact us again should you have any further problems or queries.

Best regards,

Barry Stark
Apple Developer Connection
Worldwide Developer Relations

I just can’t believe they would actually respond to my feedback! This is Apple way of company-customer/user/developer interaction, which only a few other companies can match ( I think Google is one of the “a few companies” ) ! And please stay tuned to the ADC website for any late breaking updates just in case that you are anxiously awaiting the updated AppleScript Language Guide !

You can subscribe to this feed using Safari, Google Reader, NetNewsWire, Vienna or any other feed aggregator you want. The feed is AppleScript Headlines: feed://developer.apple.com/rss/topic/applescript.rss

Posted in Apple, Leopard, 杂谈 at January 24th, 2008. No Comments.

最新的 iPhone 软件更新 1.1.3 中加入了将网页作为 WebClip 添加至 Home Screen 的功能。不知细心的你在观看 Macworld 2008 上 Steve Jobs 的演讲视频时是否发现 Google 搜索被添加至 Home Screen 时图标并不是像 纽约时报 那样的网页截图,而是一个精心设计的图标。

想知道如何为你的网站设置一个 WebClip 图标吗?本文将教会你。

官方文档见:Create a WebClip Bookmark Icon

要为你的网站的所有页面设置 WebClip 图标,将你制作好的 PNG 格式的图标命名为 “apple-touch-icon.png” ,并将它放至网站的根目录。这一点类似于传统的 “favicon.ico”。

如果想为某一页面设置不同于网站其它页面的 WebClip 图标,你还需在页面的 “head” 元素内添加一个类似于

[code lang="html"] [/code]

的 “link” 元素。

WebClip 图标的尺寸至少应该为 57×57 像素。如果图标尺寸不同于此,图标将被缩放并裁剪至合适尺寸。

Safari 将会自动合成”玻璃材质”效果以使其看起来像内置 iPhone 或 iPod 程序。所以这个特殊效果可不要在设计图标时多加了噢!^o^

就到这里!Resting.

Posted in Apple, Design, Tip at January 22nd, 2008. No Comments.

Safari 3 里附带的 Web Inspector 为网页设计人员、网站开发人员提供了极大的便利。

但是如果你想在非 Safari 程序中使用它的话,应该怎么办呢?!

实际上,要实现这一点非常简单,只需在 终端 程序中使用如下命令即可:

defaults write com.apple.**NameOfApplication** WebKitDeveloperExtras -bool true

有图为证,我这是在 字典 程序中激活了这一功能,因为我想调整一下用 Mac Dictionary Kit 转换出来的字典的行高, 但又不知道所需调整的元素的 tag 是什么,所以只好找 Web Inspector 帮忙了。

其实你可以在任何一个基于 WebKit 的程序中启用 Web Inspector。

相关文章

Posted in Apple, Design, Tip at January 7th, 2008. No Comments.

原文见:macosxhints.com | 10.5: Enable Data Detectors in iChat

Leopard 的 Mail 程序中的数据探测功能可以在用户将鼠标移至一定数据附近时提供一些方便的功能:

  • 若是联系人信息,提供的选项是将之添加至用户的地址簿。
  • 若是事件信息,提供的选项是将之添加至 iCal 中的相关日历中。如果选择添加至 iCal 中,将会弹出一个与直接在 iCal 中添加事件一样的面板,而且弹出的过程同样使用了 Leopard 中新添加的 Core Animation

    在 Mail 中探测到事件信息

    Mail 中添加事件面板

然而实际上这个功能不只局限于在 Mail 程序中使用,在 iChat 同样可以用上, 只不过 Apple 把这个功能默认隐藏了。只需在 终端 程序中输入如下命令即可:

defaults write com.apple.iChat EnableDataDetectors 1

Data Detector in iChat

若要停用此功能,将上述命令中的 1 改为 0 即可。

defaults write com.apple.iChat EnableDataDetectors 0
Posted in Apple, Leopard, Tip at January 6th, 2008. No Comments.

今天这个 Tip 同样是我在 Google Reader 中阅读新闻时发现的。

原文见 Macworld | Mac OS X Hints | Use new screen region capture options in 10.5

Leopard 之前版本的 Mac OS X 中的截图有三种模式:

  • Shift Command 3: 这个是全屏幕截图。
  • Shift Command 4 ,在松开按键后点按并拖移鼠标,然后放开鼠标:所选区域截图。
  • Shift Command 4 并按空格键,此时鼠标指针将变成一台老式摄像机的样子,然后移动鼠标至某个窗口上方以使其突出显示,点击鼠标或空格键:这样实现的是特定窗口截图,如此截图将包含完整的窗口投影。

Leopard 中新添加的功能略微有些复杂,不过我将尽力将之描述清楚。描述如下:

  • 空格键:
    Shift Command 4 ,在松开按键后点按并拖移鼠标,此时如不放开鼠标键,按住空格键,将可移动已拖拽出的矩形截图区域移至屏幕上任意位置。
  • Shift 键:
    Shift Command 4 ,在松开按键后点按并拖移鼠标,此时如不放开鼠标键,按住 Shift 键,继续拖拽将可移动已拖拽出的矩形截图区域沿某一方向缩短或伸长。
  • Opt 键:
    Shift Command 4 ,在松开按键后点按并拖移鼠标,此时如不放开鼠标键,按住 Opt 键,继续拖拽将可移动已拖拽出的矩形截图区域缩放,此时缩放的中心为已拖拽出的矩形截图区的中心。
  • 今天的内容就到这里了。希望这对大家有用!新年快乐!

Posted in Apple, Leopard, Tip at January 6th, 2008. 3 Comments.