• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problems with *path* specifications under Mac OS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with *path* specifications under Mac OS X


  • Subject: Re: Problems with *path* specifications under Mac OS X
  • From: Gerd Wilmer <email@hidden>
  • Date: Mon, 21 Jul 2003 08:36:01 +1000

the problem is the pathname. Try this:
property MyDisk : "Gerd's OSX"
property MyFolder : "Amex"

tell application "Finder"
get exists of disk MyDisk
get exists of folder MyFolder of disk MyDisk

add these lines
set the source_folder to path to desktop folder
set the source_folder to source_folder as string
change this line
get exists of folder (source_folder & ":" & MyFolder)
end tell

It appears that OSX uses the term"desktop" as an acronym for your hard
drive!!


Gerd



On Thursday, Jul 17, 2003, at 04:19 Australia/Sydney, Joan Sanchez Sabi
wrote:

> If I run the follwing Script:
>
> property MyDisk : "Produccis"
> property MyFolder : "Scripts"
>
> tell application "Finder"
> get exists of disk MyDisk
> get exists of folder MyFolder of disk MyDisk
> get exists of folder (MyDisk & ":" & MyFolder)
> end tell
>
> I get the following results:
>
> tell application "Finder"
> exists disk "Produccis"
> --> true
> exists folder "Scripts" of disk "Produccis"
> --> true
> exists folder "Produccis:Scripts"
> --> false
> end tell
>
> Question: Why is the last result false? (when the second is not)
>
> It does NOT happen if I run the same script under Mac OS 9.
>
> Regards
> _______________________________________________
> applescript-users mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/applescript-users
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Problems with *path* specifications under Mac OS X (From: Joan SÃnchez Sabà <email@hidden>)

  • Prev by Date: Re: adding links to html pages
  • Next by Date: Re: Controlling iTunes Remotely
  • Previous by thread: Problems with *path* specifications under Mac OS X
  • Next by thread: Re: Problems with *path* specifications under Mac OS X
  • Index(es):
    • Date
    • Thread