Re: Pathname Weirdness
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