Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Applescript > Re: How to set ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 1600 of 1658
Post > Topic >>

Re: How to set Address Book image?

by Jolly Roger <jollyroger@[EMAIL PROTECTED] > Apr 24, 2008 at 09:10 PM

In article 
<0372b4cc-4a02-4e0e-9259-8894d227b9ef@[EMAIL PROTECTED]
>,
 Jason8 <jason.leach@[EMAIL PROTECTED]
> wrote:

> property i: "path\to\my\image.tiff"

POSIX paths use the forward slash character (/) for a delimiter - not 
the backwards slash character (\) as you've used above. 

Also, in AppleScript, most applications that accept paths expect the 
paths to be HFS paths, which use the colon character (:) as a delimiter, 
and use a slightly different method of specifying the start (or root) of 
the path. To convert a POSIX path to an HFS path, use the "POSIX file" 
command:

     set posix_path to "/Library"
     set hfs_path to POSIX file posix_path
     
To convert a HFS path to a POSIX path, use the "POSIX path" property:

     set hfs_path to choose file
     set posix_path to hfs_path's POSIX path

Enjoy.

-- 
Please send all responses to the relevant news group. E-mail sent to
this address may be devoured by my very hungry SPAM filter. I do not
read posts from Google Groups. Use a real news reader if you want me to
see your posts.

JR
 




 2 Posts in Topic:
How to set Address Book image?
Jason8 <jason.leach@[E  2008-04-24 16:48:57 
Re: How to set Address Book image?
Jolly Roger <jollyroge  2008-04-24 21:10:46 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Sep 6 23:06:49 CDT 2008.