Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: What is apple script error -1708? And why am I getting it?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is apple script error -1708? And why am I getting it?



On Jul 15, 2009, at 11:23 AM, OSullivan, Steven wrote:
I am attempting to run this script through AppleScript Studio (3.1.3, OS X 10.5.7 Intel) and when it runs, I immediately get an AppleScript error -1708.


-- begin script
property plistString : "This is da BOMB!"

on readPlist()
    fileAlias = (path to me) & "test.plist" as alias

That won't work. You can use ...

set filePath to ((path to me) as text) & "test.plist"

to get a path string directly, or use this ...

set fileAlias to (item "test.plist" of (path to me)) as alias
set filePath to fileAlias as text
.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >What is apple script error -1708? And why am I getting it? (From: "OSullivan, Steven" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.