• 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: Pathname Weirdness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pathname Weirdness


  • Subject: Re: Pathname Weirdness
  • From: Jonathan Piccolo <email@hidden>
  • Date: Mon, 8 May 2006 13:11:57 -0400

Thank you for your help Michelle. Unfortunately, though, still no luck. See event log for details here:

tell application "Finder"
exists alias ".aPCheck"
false
display dialog "This script was not installed correctly. Please reinstall." buttons {"Quit"} default button 1
{button returned:"Quit"}
"User canceled."


Full code for reference in case I'm doing something stupid (very likely):

property antiPiracy : (path to preferences folder from user domain as text) & ".aPCheck"
set folderName to ".aPCheck"
tell application "Finder"
if (not (exists alias folderName)) then
display dialog "This script was not installed correctly. Please reinstall." buttons {"Quit"} default button 1
error number -128 --Quit was pressed
else
return 0
end if
end tell


I think I'm going to have to go about this a different way. I'm too new at this right now and I think I'm a bit over my head here.

Regards,

Jonathan Piccolo
---------------------------------------------------
email@hidden
http://www.callthemacwizard.com


On May 8, 2006, at 12:58 PM, Michelle Steiner wrote:


On May 8, 2006, at 9:12 AM, Jonathan Piccolo wrote:

Thank you so much for your quick and helpful response. I no longer have the syntax error, however something seems to be a little off as it doesn't appear to see the existence of the ".aPCheck" file/ folder. This is the event log:

Use a full alias path instead of Finder references.

property antiPiracy : (path to preferences folder from user domain as text) & ".aPCheck"

if (not (exists alias folderName)) then

-- Michelle

--
The Bible contains six admonishments to homosexuals and three hundred, sixty-two admonishments to heterosexuals. That doesn’t mean that God doesn’t love heterosexuals. It’s just that they need more supervision. —Lynne Lavner


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (Applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac-wizard.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Pathname Weirdness
      • From: Michelle Steiner <email@hidden>
    • Re: Pathname Weirdness
      • From: Christopher Nebel <email@hidden>
References: 
 >Pathname Weirdness (From: Jonathan Piccolo <email@hidden>)
 >Re: Pathname Weirdness (From: Michelle Steiner <email@hidden>)
 >Re: Pathname Weirdness (From: Jonathan Piccolo <email@hidden>)
 >Re: Pathname Weirdness (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Pathname Weirdness
  • Next by Date: Re: Exchange Calendar Access & Manipulation
  • Previous by thread: Re: Pathname Weirdness
  • Next by thread: Re: Pathname Weirdness
  • Index(es):
    • Date
    • Thread