English 中文(简体)
我将使用何种辅助数据类型?
原标题:What applescript data type would I use for this?

我采用了这一补充法:

tell application "TextEdit"
    set test to the bounds of window 1
end tell

display dialog test

但是,我正犯以下错误:

error "Can’t make {10, 22, 400, 1003} into type string." number -1700
from {10, 22, 400, 1003} to string

我需要使用哪类数据?

BTW,我不想像你把它放在某些数据类别时那样显示<>10224003。

最佳回答

显示方言只能显示方言。 窗户已作为人数清单退还给你。 因此,你必须从这些信息中拿出力量,以便你能够展示这些信息。 这样做有几种办法,但在这里,我们只是创造新的扼杀手段,并将约束数字插入我们所希望的那部分。 你们可以看到,我把新扼杀的眼光像编号清单......但确实是一个扼杀。

tell application "TextEdit"
    set boundsList to the bounds of window 1
end tell

set boundsString to "{" & ((item 1 of boundsList) as text) & ", " & ((item 2 of boundsList) as text) & ", " & ((item 3 of boundsList) as text) & ", " & ((item 4 of boundsList) as text) & "}"
display dialog boundsString
问题回答

暂无回答




相关问题
Creating Help Files - Applescript Studio

I would like to know how to generate help files for an applescript studio application I am currently creating. I have tried many different options of creating help, and googled it for quite some time ...

封顶下载和开放式链接

I ve在Angap邮报中设定了一条规则,以操作“Download & Openlink”pple。 我希望这一文字在邮件电文中下载该词,在下载该词之后,该词应开放。

AppleScript to open named terminal window

I have two windows/tabs set up to run in Terminal.app, "syd" and "mel". i.e. in Shell | New Window, "syd" and "mel" are listed. How can I open these terminal configurations with AppleScript?

Hello World Error

I m learning AppleScript and my first program is a Hello World(of course!): display dialog "Hello World" But when I try to run this I got the error: The result of a numeric operation was too ...

User properties/ privileges in AppleScript

I want to write an applescript program that first checks to see if the user has Admin privileges, and if it doesn t then requesting a re-log-in or something. Eventually the script is going to need to ...

Applescript to archive email in Mail.app

I need to write an Applescript for Mail.app that will take all messages in my Inbox and Sent Messages that are older than a certain # of days and move them into respective folders "On My Mac", or ...

热门标签